AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

%Comspec% not sending the command.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Mon Oct 19, 2009 3:54 pm    Post subject: %Comspec% not sending the command. Reply with quote

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
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Mon Oct 19, 2009 4:51 pm    Post subject: Reply with quote

Code:


SetWorkingDir, C:\WINDOWS\System32\

Run, %Comspec% /c net start wzcsvc,, ;hide
Back to top
View user's profile Send private message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Mon Oct 19, 2009 5:36 pm    Post subject: Reply with quote

It works Thank you. But why is "/c" needed?
Back to top
View user's profile Send private message
flak



Joined: 02 Oct 2009
Posts: 283

PostPosted: Mon Oct 19, 2009 5:40 pm    Post subject: Reply with quote

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true
Quote:
/c : Carries out the command specified by string and then stops.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group