Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

VBS - shell commands how to view & keep them in the shell - console looses history

$
0
0
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:
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

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>