Windows RUN box can do this, and so can the cmd box, but authotkey's "run" command just gives an error.
Is there some autohotkey setting, or am I stuck using a hidden comspec to run commands like msconfig?
I've tried this, but it doesn't work either. But I can run msconfig from the Windows run box.
Code: Select all
run, %comspec% /c msconfig,,hide
I've tried this, too; the cmd box flashes and disappears
Code: Select all
HiddenConsoleCommand(whatcommand) {
shell := ComObjCreate("WScript.Shell")
exec := shell.Exec(ComSpec . " /d c:\windows\system32 /C " . whatcommand)
return exec.StdOut.ReadAll()
}
AutoHotkey 1.1.30.01 Unicode on Windows 7 Pro x64
I found this, but is this a good way?