MariusN Posted December 23, 2009 Posted December 23, 2009 (edited) ShellExecuteWait("Aut2exe.exe"," /in test.au3 /out Test.exe /icon net_256.ico", @ScriptDir & "\bin") Weired error. (This is a piece of my code) If i put my complete script (including the above code) in the @homedrive under a directory, the function above will execute correctly, but as soon as i take the complete code and put it in "Documents and Settings" directory, my script just stops working...Any ideas? Has this maybe got something 2 do with environments? Edited December 23, 2009 by MariusN
Developers Jos Posted December 23, 2009 Developers Posted December 23, 2009 You need to use fully qualified paths when putting it in another directory or do a FileChangeDir() to the proper directory before the ShellExecute() statement. Specifying the WorkDir doesn't resolve that. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
MariusN Posted December 23, 2009 Author Posted December 23, 2009 You need to use fully qualified paths when putting it in another directory or do a FileChangeDir() to the proper directory before the ShellExecute() statement. Specifying the WorkDir doesn't resolve that.aaa ok...Thanks a lot Jos
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