Jump to content

Can't seem to get the Run command to work


Recommended Posts

So i am pretty new to programming and been trying to automate an update and got recommended AutoIT.

 

So right now my program looks like this:

 

#RequireAdmin

Run ('c:\program files\subfolder\subfolder\subfolder\program.exe

 

 

When test running the program i get the notification to let it use admin privileges and then nothing.

Also worth mentioning that it has to be able to run on systems  that does not have AutoIT installed.

 

Any help would be appreciated! 

Link to comment
Share on other sites

Hi @TotallyNotWorkingatm, and welcome to the AutoIt forum :)
Syntacically, this is not correct:

Run ('c:\program files\subfolder\subfolder\subfolder\program.exe

Try this instead:

Run('c:\program files\subfolder\subfolder\subfolder\program.exe')

 

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
Share on other sites

Be careful of spaces in paths. You need to wrap them with quotes Run('"c:\program files\subfolder\subfolder\subfolder\program.exe"')

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
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
 Share

  • Recently Browsing   0 members

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