Sign in to follow this  
Followers 0
Olivia

ScriptDir

2 posts in this topic

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.

 

 

Share this post


Link to post
Share on other sites



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?


√-1 2^3 ∑ π, and it was delicious!

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  
Followers 0