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 

cmd.exe

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



Joined: 22 Jul 2004
Posts: 193
Location: cedar city UT

PostPosted: Thu Jun 16, 2005 4:15 am    Post subject: cmd.exe Reply with quote

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^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Thu Jun 16, 2005 4:22 am    Post subject: Reply with quote

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? Smile
Back to top
View user's profile Send private message Visit poster's website
sleepyy35



Joined: 22 Jul 2004
Posts: 193
Location: cedar city UT

PostPosted: Thu Jun 16, 2005 4:34 am    Post subject: Reply with quote

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/documentation/windows/xp/all/proddocs/en-us/redirection.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
Laughing Very Happy Very Happy Very Happy
thank you for the help
Michael Cool
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Thu Jun 16, 2005 4:50 am    Post subject: Reply with quote

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.
Smile
Back to top
View user's profile Send private message Visit poster's website
sleepyy35



Joined: 22 Jul 2004
Posts: 193
Location: cedar city UT

PostPosted: Thu Jun 16, 2005 5:08 am    Post subject: Reply with quote

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 Very Happy
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Thu Jun 16, 2005 5:14 am    Post subject: Reply with quote

Thanks Smile . If you run into any problems with it pls let me know (still beta testing).
Back to top
View user's profile Send private message Visit poster's website
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