Collectives on Stack Overflow. Learn more. Bat file to run a. Asked 13 years, 2 months ago. Active 1 year, 6 months ago. Viewed 1.
I want to create a. Anonymous Box Anonymous Box. Possible duplicate of How can I run a program from a batch file without leaving the console open after the program start?
Add a comment. Active Oldest Votes. MehdiJ: sets home directory. Karthi: sorry, it's impossible — abatishchev. Karthi You do not want javascript to be able to run a bat file for security reasons. Then wait several seconds to start a program that hooks onto the program I'm checking for. If you want the file to timeout after checking a certain amount of times, you could use a counter within the loop to limit the amount of times it loops.
This can be modified to fit your needs. Or if you know how long it takes to execute, you can take a look at the sleep command, provided by the Windows Server Resource Kit Tools. Sign up to join this community.
The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How do you wait for an exe to complete in batch file? Ask Question. Asked 10 years, 10 months ago. Active 1 year, 4 months ago. Viewed k times. Is there any way to tell it to wait until the process it started completes and then shutdown?
Improve this question. MrBogus MrBogus 49 1 1 bronze badge. Tomasz Janicki Tomasz Janicki 41 3 3 bronze badges. This probably answers a question, but not this one. The question is about starting an. You answer how to start a. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta.
New post summary designs on greatest hits now, everywhere else eventually. Linked 5. For example, the following command would start Notepad in most versions of Windows. The start command can be used for other exe files by replacing the file path with the path to the exe file.
If you want to start multiple executable files, keep in mind that the batch file opens each of the files almost immediately. If you want some delay, consider using the pause command or sleep utility.
0コメント