Jump to content

Recommended Posts

Posted

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

  • Developers
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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...