Sign in to follow this  
Followers 0
NewInAutoIt

Script won't run from .exe but fine from .a3x

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



This has been posted several times lately.

Check your AntiVirus settings to exclude the temp directory: %localappdata%AutoIt v3

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Recompile again...

Sometimes I need recompile many times.
Or try compile with your AV disabled.

BR, Detefon


Visit my repository

Share this post


Link to post
Share on other sites

That worked!! Thanks a lot Detefon and Jos.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0