Jump to content

problems with run(


Recommended Posts

I have a bit of a problem with run...

I understand that when I active a program with run the program try to run in the scriptdir right? and not in the program dir?

For exemple lets say I want to run a program

C:\Users\user\Downloads\test\test.exe in her dir I need to write

run("C:\Users\user\Downloads\test\test.exe","C:\Users\user\Downloads\test\")

is there any other way in hich that I do not need to supply the home directory of the program I want to run??? because I only get the "C:\Users\user\Downloads\test\test.exe" and I dont have the directory "C:\Users\user\Downloads\test\"

Thank you/

Link to comment
Share on other sites

Did you try to run the exe without providing the folder and it didn't work?

Usually you don't need to specify "Working Dir" - use that if you really need it.

It's not hard to get the folder path out of your file path ... have a quick look at _PathSplit in the "File.au3" - or ... make your own function to do that.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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...