I have a vb script that starts an exe (or even a process without gui):
strCom = "Start calc"
WSHShell.Run(strCom)
It doesn't start the program, when I open task manager I can't see it.
But when I write the command "Start calc" directly in the command line it opens it.
How can I do it using the script?
start
is built-in to cmd.exe
; it's not an actual program.
WSHShell.Run
takes a physical file , not a cmd
built-in.
Therefore, you can write WSHShell.Run("calc.exe")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With