Jump to content

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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..

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