Sign in to follow this  
Followers 0
joshiieeii

Macro for current server path in a switch

3 posts in this topic

Trying to make an exe that runs a command with a switch, only thing is I want to use whatever directory the script is to make it more portable if it is on another box.

Run( @ScriptDir & "\vs\Setup\setup.exe /unattendfile" & @ScriptDir & "\nvidia.ini" )

I am having trouble with the @scriptDir parts, I tried a variable, same issues. Any help is much appreciated. :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Trying to make an exe that runs a command with a switch, only thing is I want to use whatever directory the script is to make it more portable if it is on another box.

Run( @ScriptDir & "\vs\Setup\setup.exe /unattendfile" & @ScriptDir & "\nvidia.ini" )

I am having trouble with the @scriptDir parts, I tried a variable, same issues. Any help is much appreciated. :)

probably need to:

- put a space after /unattendfile

- quote the directory

Run( @ScriptDir & '\vs\Setup\setup.exe /unattendfile "' & @ScriptDir & '\nvidia.ini"' )
Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

probably need to:

- put a space after /unattendfile

- quote the directory

Run( @ScriptDir & '\vs\Setup\setup.exe /unattendfile "' & @ScriptDir & '\nvidia.ini"' )

Thanks!! :) That was the problem, it seems to be working now..

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