OS: Win 7 64bits
Hi,
I want to run some command line from the shell and be able to:
1/ view the run command
2/ keep it the memory, so that I can use the arrow down key to reshow it in order to modify it.
Thanks
Here is my code, it works, but I can't view command, in this case "dir *.txt" or use the the arrow down to re-show it:
strCli = "dir *.txt"
Set objShell = Wscript.CreateObject("Wscript.Shell")
Const SHOW_ACTIVE_APP = 1
objShell.Run ("%comspec% /k " & strCli), SHOW_ACTIVE_APP, True
Wscript.Quit
Set objShell = nothing
Hi,
I want to run some command line from the shell and be able to:
1/ view the run command
2/ keep it the memory, so that I can use the arrow down key to reshow it in order to modify it.
Thanks
Here is my code, it works, but I can't view command, in this case "dir *.txt" or use the the arrow down to re-show it:
Quote:
strCli = "dir *.txt"
Set objShell = Wscript.CreateObject("Wscript.Shell")
Const SHOW_ACTIVE_APP = 1
objShell.Run ("%comspec% /k " & strCli), SHOW_ACTIVE_APP, True
Wscript.Quit
Set objShell = nothing