Jump to content
Sign in to follow this  
joshiieeii

Macro for current server path in a switch

Recommended Posts

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

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

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  

×
×
  • Create New...