Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Batch script not waiting for process to end in Vista

Reply
Thread Tools Display Modes

Batch script not waiting for process to end in Vista

 
 
TJC79
Guest
Posts: n/a

 
      12-29-2008

Hey Guys/Gals

Ok.. I'm writing a basic script which should not be too hard but I'
getting crippled by the old "start /wait ...." command which does no
appear to work in Vista (not fully anyway)

So I'm attempting to start several virtual machines which in turn run
batch file but they must be run independently (as opposed t
simultaneously for licensing reasons). I'm using VPC 2007 and have
command line which looks similar to belo

Code
-------------------

start /wait "" "c:\program files\....\virtual pc.exe" -pc XPHome -launc

-------------------
First the "" after the /wait is because the file location require
quotes; so if the "" do not exist the start command thinks the fil
location is the "title" of the screen. It needs to be there

Now my problem with Vista is that it immediately drops to the comman
line after running this and does not wait, thus causing my script t
open all the VPCs and Microsoft thinking I've just sold my key to
surprising number of people with identical MAC addresses ;-)

So my question here is how do I get Vista to wait for this VPC to clos
before moving to the next line in the script

Thanks in advance

TJ

Additional info
- start /wait will work with notepa
- I've tried removing the start command and use the command line strin
only with no avail (same issue

--
TJC79
 
Reply With Quote
 
 
 
 
TJC79
Guest
Posts: n/a

 
      12-29-2008

Ahhhh HAH!!! I figured it out.

It appears it is the "Run as admin" tag in the file properties. If this
is ticked you will not be able to perform the wait function on the
command line string.


--
TJC79
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I play a Wav file from batch/cmd script? hbfavor Windows Vista Performance 7 09-13-2008 03:51 PM
Help with a Batch file script (FTP) MariusK Windows Vista General Discussion 2 08-01-2008 01:13 AM
Windows Waiting Vista Adrian Miller Windows Vista Performance 0 05-02-2008 08:01 AM
Windows Script Host has no script engine for ".js" files Stephan G. Windows Vista General Discussion 9 04-24-2008 08:04 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59