AutoHotkey Community

It is currently May 26th, 2012, 10:09 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 19th, 2009, 4:54 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
With the following lines I only get a DOS window (the command is not being passed to the DOS window)
Code:
SetWorkingDir, C:\WINDOWS\System32\

Run, %Comspec% net start wzcsvc,, ;hide


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2009, 5:51 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
Code:

SetWorkingDir, C:\WINDOWS\System32\

Run, %Comspec% /c net start wzcsvc,, ;hide


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2009, 6:36 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
It works Thank you. But why is "/c" needed?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2009, 6:40 pm 
Offline

Joined: October 2nd, 2009, 12:43 pm
Posts: 283
http://www.microsoft.com/resources/docu ... x?mfr=true
Quote:
/c : Carries out the command specified by string and then stops.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], hyper_, JSLover, Leef_me, oldbrother, patgenn123 and 62 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group