Jump to content

ScriptDir


Olivia
 Share

Recommended Posts

I'm getting an error:  The filename, directory name, or volume label syntax is incorrect.  when I run my script  The exe is located in two folders, for example C:\Project\Example\ExampleSetup.exe

my code:

Run(@ScriptDir & "\ExampleSetup.exe")

I need to understand what the error message mean and how to fix it.  Is there anyone else who has this issue.

 

 

Link to comment
Share on other sites

  • Moderators

Moved the thread to the appropriate forum, as the DEV forum clearly states:

Quote

Do not create AutoIt-related topics here, use AutoIt General Help and Support 

As for your issue, @ScriptDir is the directory where the script resides. Does your script sit in C:\Project\Example?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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