Jump to content

Running a program


tjc
 Share

Recommended Posts

I want to create a script that will run a program the problem is when I try to start it the program looks for some dll files in the programs folder. Is there a way I can issue a cd command to move to another folder to start this program?

Example

cd C:\Program Files\program

run ("program.exe")

Link to comment
Share on other sites

I want to create a script that will run a program the problem is when I try to start it the program looks for some dll files in the programs folder. Is there a way I can issue a cd command to move to another folder to start this program?

Example

cd C:\Program Files\program

run ("program.exe")

working directory is an optional parameter for the Run() and RunWait() commands. It should accomplish your goal. details are in the helpfile
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...