Login | |
|
 |
RE: controlling a Command Prompt(DOS) window - 12/8/2006 1:24:58 AM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1194
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
Call sub1 WScript.Sleep 3000 Call sub2 WScript.Sleep 3000 Call sub3 Sub sub1 CreateObject("Wscript.Shell").Run "%comspec% /k title MyShell",1,False End Sub Sub sub2 CreateObject("Wscript.Shell").AppActivate "MyShell" CreateObject("Wscript.Shell").SendKeys "dir c:\Windows /a{ENTER}" End Sub Sub sub3 CreateObject("Wscript.Shell").AppActivate "MyShell" CreateObject("Wscript.Shell").SendKeys "exit{ENTER}" End Sub
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
 |
RE: controlling a Command Prompt(DOS) window - 12/8/2006 7:01:23 AM
|
|
 |
|
| |
thorwath
Posts: 42
Score: 0
Joined: 12/6/2006
From: Grand Rapids, MI
Status: offline
|
Digital, This code got me started. -Much Thanks, Terry
|
|
| |
|
|
|
|
|