How do you wait for an exe to complete in batch file? Either calling the exe directly from the batch file, or using start /wait will work but there is a caveat. If the exe you call then creates other process, such as calling another exe, and then exits the batch file will continue processing after the called exe has terminated, as it has no knowledge of other processes started by it. In your case this is a real problem because installers normally extract files from some form of compressed container, which may be embedded in the exe itself, then fire off one of the extracted files and exit. Some installers provide command line parameters which tell the original exe not to exit until the entire installation is complete, so that's something you may want to investigate. Other than that, there's no real way around this with batch files alone and would take a programmatic solution to solve. ![]() Home; KBase Tips; Windows Server 2012/2008/2003/2000/XP/NT Administrator Knowledge Base; Windows 2003; Admin Tips; Active Directory; Get control of your severs using Startup/Shutdown Script. by Santhosh Sivarajan. Either calling the exe directly from the batch file, or using start /wait will work but there is a caveat. If the exe you call then creates other process, such as calling another exe, and then exits the batch file will. Again, this does not work with arguments containing wildcards. The maximum possible number of arguments is greater than 4000, as empirically determined on a Windows Vista machine. The number can differ on Windows XP and. This problem is caused by a Remote Desktop Connection using the /console switch to the Windows Server 2003 computer. Solution, either get a hotfix for a permanent solution, else check the server's remote connections for a. Related Stuff: FoolishIT's ShutdownUnless is a safe way to schedule server reboots, aborting the reboot if any client connections are active. Jorgen Bosman's PowerOff for all Windows (32-bits) versions can power off, shutdown. I need a batch script to remotely restart about 300 windows server 2003 computers on the network using Altris Deployment Server. Software/Hardware used: Windows Server 2003. Sometime it is necessary to reboot (or shutdown) windows server. Under UNIX or Linux you can use reboot / hal t/shutdown command via cron jobs or at command. But, when it comes to Windows server there is no built in. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2017
Categories |