GoogleDude Posted November 4, 2018 Share Posted November 4, 2018 (edited) So I have a script1 that when I compile it I use the directive "#AutoIt3Wrapper_Run_After" to call another uncompiled script2 while passing parameters to uncompiled script2. However whenever script1 gets compiled I get the below output in the scite console windows. This is only happening if I pass parameters to script2.au3 #AutoIt3Wrapper_Run_After="C:\PROGRA~2\AutoIt3\AutoIt3.exe" "%scriptdir%\Script2.au3" /SomeParameter >Running:"C:\PROGRA~2\AutoIt3\AutoIt3.exe" "P:\AutoIt_Projects\MyScript\Script2.au3" /SomeParameter The filename, directory name, or volume label syntax is incorrect. >"C:\PROGRA~2\AutoIt3\AutoIt3.exe" "P:\AutoIt_Projects\MyScript\Script2.au3" /SomeParameter Ended rc:1 Why is is saying "The filename, directory name, or volume label syntax is incorrect." If I run the exact same command from a command prompt (cmd.exe) for script2 (below) manually it runs as expected. "C:\PROGRA~2\AutoIt3\AutoIt3.exe" "P:\AutoIt_Projects\MyScript\Script2.au3" /SomeParameter It seems to be an issue only when I use the %ScriptDir% var in #AutoIt3Wrapper_Run_After What am I missing? Im using AutoIt v3.3.14.2 ~Thanks ~GD Edited November 4, 2018 by GoogleDude Link to comment Share on other sites More sharing options...
GoogleDude Posted November 4, 2018 Author Share Posted November 4, 2018 So 2mins after I posted this I figured it out. Had to change the double quotes to the below. Then all was working. #AutoIt3Wrapper_Run_After="C:\PROGRA~2\AutoIt3\AutoIt3.exe "%scriptdir%\Script2.au3 /SomeParameter" ~GD Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now