AutoHotkey Community

It is currently May 26th, 2012, 6:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: cmd.exe
PostPosted: June 16th, 2005, 5:15 am 
Offline

Joined: July 22nd, 2004, 6:33 am
Posts: 193
Location: cedar city UT
hi all
i'm wondering if anyone would no of a way to talk to cmd.exe without the
prompt window
i been trying a few things but no luck !
thank you
michael

_________________
^sleepy^


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 5:22 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2542
Hi Michael,

Would Run/RunWait with the Hide option work for what you are trying to do? If not could you be a bit more specific pls? :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 5:34 am 
Offline

Joined: July 22nd, 2004, 6:33 am
Posts: 193
Location: cedar city UT
hi corrupt
i'm trying to send commands like /dir to the cmd.exe from a script
and iwas wondering if i could send the command such as /dir to the
cmd.exe with the command prompt window opening
but i think i found a way to do it
http://www.microsoft.com/resources/docu ... ction.mspx
do you know if cmd is a file extensions like test.cmd ?
i think i can send the comamnds to a text file or a cmd file then run them
from a gui script
:lol: :D :D :D
thank you for the help
Michael 8)

_________________
^sleepy^


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 5:50 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2542
You could use something similar to this to send the output of a directory listing to a file without displaying a console window:
Code:
RunWait, cmd.exe /C dir c:\ > %A_ScriptDir%\testout.txt ,,Hide

If you wanted to return the output to a variable directly instead then CMDret could be another option.
:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 6:08 am 
Offline

Joined: July 22nd, 2004, 6:33 am
Posts: 193
Location: cedar city UT
yes i have CMDret very nice work i'm going to use it for just that output to a variable
thats really good work
thanks for the dll
michael :D

_________________
^sleepy^


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 6:14 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2542
Thanks :) . If you run into any problems with it pls let me know (still beta testing).


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, BrandonHotkey, hilalpro, Yahoo [Bot] and 59 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