Code: Select all
#SingleInstance, off
if A_IsCompiled {
s:=Cmd("""" A_ScriptFullPath """ ""Match"" """ Match_TableName """ """ Match_inCol """ """ Match_outCol """ """ Match_needle """ """ Match_options """ """ Match_mNum """ """ Match_sNum """")
msgbox, %s%
} else {
command := """" A_AhkPath """ """ A_ScriptFullPath """ ""Match"" """ Match_TableName """ """ Match_inCol """ """ Match_outCol """ """ Match_needle """ """ Match_options """ """ Match_mNum """ """ Match_sNum """"
msgbox, %command%
s:=Cmd(command)
msgbox, %s%
}
;...
Cmd(command){
x := ComObjCreate("WScript.Shell").Exec("cmd.exe /q /c " command)
return % "STDOut: " x.StdOut.ReadAll() "`nSTDErr: " x.StdErr.ReadAll()
}
Code: Select all
"C:\Program Files\AutoHotkey\AutoHotkey.exe" "U:\Macros\3_AHK\MapInfo Regex\MapInfoRegex-master\MI_RegexEngine.ahk" "Match" "AL_Extracty" "Bob" "Field100" "" "" "*" "*"
Code: Select all
STDOut:
STDErr: 'C:\Program' is not recognized as an internal or external command, operable program or batch file.
Has anyone got any idea why this may be occurring?