1

I'm trying to create a script that runs the command: RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Right now this errors out

Dim objShell
Set objShell = Wscript.CreateObject("WScript.Shell")
sEXE = """C:\Windows\system32\RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255 """ 

        with CreateObject("WScript.Shell")
          .Run sEXE & " " , 1, true
end with

        Wscript.Quit

Any suggestions? Could I make the script so I could run a bunch of commands and wait until each process executed has finished before executing the other command?

1 Answer 1

1

The command line should appear exactly as it would if you typed it at the command prompt (verify by Wscript.Echo sEXE):

sEXE = """C:\Windows\system32\RunDll32.exe"" InetCpl.cpl,ClearMyTracksByProcess 255"
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.