MS-DOS

Moderators: blip
Number of threads: 389
Number of posts: 904

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
start /wait does not wait for process to finish Posted by nirvan on 21 Aug 2009 at 6:30 AM
I am having a batch file which installs mysql and other addon's. I start the installation with start /wait command for MYSQL.exe as given below.

start /wait $INSTALL_PATH/Temp1/Server/MYSQL.exe
echo done

The problem is that the processing does not wait for the MYSQL.exe to complete. So in the above code the line "echo done" gets executed before the line "start /wait $INSTALL_PATH/Temp1/Server/MYSQL.exe" has finished installation of MYSQL.

regards,
nirvan.
Report
Re: start /wait does not wait for process to finish Posted by DaiMitnick on 21 Aug 2009 at 11:51 AM
I know that in XP (not sure about vista) DOS does not support the wait function on 32-bit win apps, only on 16-bit, so you'll have to find a workaround. My suggestion would be to create a loop to see if any new files are created after running MySQL and use that as the trigger, or if running MySQL uses up specific ports you could use the net send command to see once they have finished using them. Hopefully you can think of a better method. Hope this helps, Dai.


------------------------------------------
Do or do not, there is no try. |
------------------------------------------



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.