Jump to content

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


Go to solution Solved by Luigi,

Recommended Posts

Posted

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.
Posted

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?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...