| View previous topic :: View next topic |
| Author |
Message |
sleepyy35
Joined: 22 Jul 2004 Posts: 193 Location: cedar city UT
|
Posted: Thu Jun 16, 2005 4:15 am Post subject: cmd.exe |
|
|
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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Thu Jun 16, 2005 4:22 am Post subject: |
|
|
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?  |
|
| Back to top |
|
 |
sleepyy35
Joined: 22 Jul 2004 Posts: 193 Location: cedar city UT
|
Posted: Thu Jun 16, 2005 4:34 am Post subject: |
|
|
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
thank you for the help
Michael  _________________ ^sleepy^ |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Thu Jun 16, 2005 4:50 am Post subject: |
|
|
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.
 |
|
| Back to top |
|
 |
sleepyy35
Joined: 22 Jul 2004 Posts: 193 Location: cedar city UT
|
Posted: Thu Jun 16, 2005 5:08 am Post subject: |
|
|
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  _________________ ^sleepy^ |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Thu Jun 16, 2005 5:14 am Post subject: |
|
|
Thanks . If you run into any problems with it pls let me know (still beta testing). |
|
| Back to top |
|
 |
|