Jump to content

Relative paths problem with function Run


Recommended Posts

Hello, I cannot run a program contained in a subfolder (it needs to be there)

I tried this:

#include <File.au3>

$apppath = _PathFull (@ScriptDir & "..\subfolder\")

Run("$apppath & program")

What's wrong?

Can anyone help me?

Link to comment
Share on other sites

Oh hello again Mhz.

You're right about "\subfolder\".

The command doesn't work yet however.. is this right?

Run("$apppath & program")

Hi

Run($apppath & "program.exe")

Cheers

Edited by november

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Link to comment
Share on other sites

It works now.

Thank you November

Glad to ear!

Cheers mate... have a nice scripting day :)

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

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