Drew Posted November 22, 2007 Share Posted November 22, 2007 Alright how do you run a program thats NOT in @scriptDir w/e This is some things I tried: Run( @programfilesdir &"RevertTo109.Bat") FileOpen ( @programfilesdir &"RevertTo109.Bat") I even went as far to do this, after creating a shortcut to the .bat. FileMove( @scriptdir "\RevertTo109.Bat", @programfilesdir "\Diablo II") Run( "Shortcut to RevertTo109.Bat" ) None of which worked. If you haven't guessed, the file I want to run is in the users programs folder. I've tried everything I can think of to run that program, can someone PLEASE help me? Link to comment Share on other sites More sharing options...
JustinReno Posted November 22, 2007 Share Posted November 22, 2007 ShellExecute() Its in the help file. Link to comment Share on other sites More sharing options...
Drew Posted November 22, 2007 Author Share Posted November 22, 2007 (edited) Alright now I feel stupid for not having found it BUT... I still cant get it to work. I would learn this a bit easier if I could get an example. the .bat i want to run is in the program files directory , and is named RevertTo109 I do NOT want you to do the work for me , so if thats what you think I'm asking , than would you just explain how to use it please. EDIT: I've read the help files description and tried to do it a couple times. VERY frustrating. Edited November 22, 2007 by Drew Link to comment Share on other sites More sharing options...
JustinReno Posted November 22, 2007 Share Posted November 22, 2007 Here is an example: ShellExecute(@WindowsDir&"\System32\MSpaint.exe") 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