Jump to content
Sign in to follow this  
Drew

Running a program.

Recommended Posts

Drew

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?

Share this post


Link to post
Share on other sites
JustinReno

ShellExecute()

Its in the help file.

Share this post


Link to post
Share on other sites
Drew

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 by Drew

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  

×