TotallyNotWorkingatm Posted September 17, 2018 Share Posted September 17, 2018 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 More sharing options...
FrancescoDiMuro Posted September 17, 2018 Share Posted September 17, 2018 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') TotallyNotWorkingatm 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
TotallyNotWorkingatm Posted September 17, 2018 Author Share Posted September 17, 2018 @FrancescoDiMuro Thank you, wish i knew it was that simple Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted September 17, 2018 Share Posted September 17, 2018 Happy to have helped Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
jdelaney Posted September 18, 2018 Share Posted September 18, 2018 Be careful of spaces in paths. You need to wrap them with quotes Run('"c:\program files\subfolder\subfolder\subfolder\program.exe"') Xandy 1 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 More sharing options...
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