NewInAutoIt Posted July 29, 2014 Posted July 29, 2014 This confuses me. I have a script that basically tried to open a process to automate. It works fine from SciTE or compiled .a3x file but not .exe. When ran from .exe it gives the AutoIt Error Unable to open the script file message box. But when it compiled into .a3x file it ran fine. The script before automation have the following : Local $directory = "C:UsersmynameDesktopsome Uninstaller" If $CmdLine[0] > 0 Then $directory = $CmdLine[1] Else Exit(1) EndIf Local $fullPath = $directory & "CompleteUninstall.exe" Run($fullPath) Can anyone help? Thanks in advance.
Developers Jos Posted July 29, 2014 Developers Posted July 29, 2014 This has been posted several times lately. Check your AntiVirus settings to exclude the temp directory: %localappdata%AutoIt v3 Jos 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.
NewInAutoIt Posted July 30, 2014 Author Posted July 30, 2014 Hi Jos, Thanks for the reply. I add the %localappdata%AutoIt v3 to excluded files and folders list in windows defender but it still give me the unable to open the script file error. Any thoughts?
Solution Luigi Posted July 30, 2014 Solution Posted July 30, 2014 Recompile again... Sometimes I need recompile many times. Or try compile with your AV disabled. BR, Detefon Visit my repository
NewInAutoIt Posted July 30, 2014 Author Posted July 30, 2014 That worked!! Thanks a lot Detefon and 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