Jump to content

Recommended Posts

Posted

Any command that is placed in the key below ("pause" in the example) is executed normally in a manually opened console, but it does not execute in a console opened by a script in Autoit, through the command: Run ( @ComSpec & " /c ..." ). Does anyone have any idea how to solve it? I've already tried using the key "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Command Processor\Autorun" as well and there is no key "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor\Autorun".

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"Autorun"="pause"

Posted (edited)

try with Run ( @ComSpec & " /k ..." )
or direct with
Local $sCommandLine = @ComSpec & " /k " & $sCommandToRun & " & pause"
Run($sCommandLine, "", @SW_SHOW)

Edited by ioa747

I know that I know nothing

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...