Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:49:02+00:00 2026-06-17T20:49:02+00:00

Let’s say in a batch file, I want to execute myCommand asynchronously (without waiting

  • 0

Let’s say in a batch file, I want to execute myCommand asynchronously (without waiting for it to finish). And I don’t want to execute myCommand in a new console window.

At the same time, I want to redirect the output of myCommand to output.txt

So in the batch file, if I write

START myCommand > output.txt

output.txt will be empty and I will see a new window.

If I write

myCommand > output.txt

then I cannot execute it asynchronously.

Is there any way I can achieve all these three requirements? (asynchronously, no new window, redirect output)

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:49:03+00:00Added an answer on June 17, 2026 at 8:49 pm

    I haven’t tested it fully, but I think this may work:

    start /b "" myCommand >output.txt
    

    I believe both forms work fine – the only difference is if standard error is redirected as well and START fails to launch myCommand.

    Redirecting START: both myCommand and START output are redirected to the file.

    start /b "" myCommand >output.txt >2&1
    

    Redirecting myCommand only: Only myCommand output is redirected. Any START error message will appear on the screen. Note, I opted to escape the redirection instead of using quotes like jeb.

    start /b "" myCommand ^>output.txt ^>2^&1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I don't have photoshop, but I want to make pattern files (.pat)
Let's say I have a 1 GB text file and I want to read
Let's say I have a file foo.py, and within the file I want to
Let's say I have thousands of users and I want to make the passwords
Let's say I want to write a function that validates an email address with
Let's say that each Product has a category. I want to ask the Users
Let's say, I have an application that access(read/write) the file system(files inside application), Active
Let's say I want to write an FTP client from scratch. In the command
Let's say I have an Instant Messenger server using SignalR. I want to broadcast
Let's say I'm outputting a post title and in our database, it's Hello Y’all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.