joshiieeii Posted May 24, 2006 Share Posted May 24, 2006 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. Projects:Vista Gui ImageX Deployment Tool - CompletedActive Directory Helper - CompletedGlobalized Outlook and OWA Signature Project - Completed Link to comment Share on other sites More sharing options...
Developers Jos Posted May 24, 2006 Developers Share Posted May 24, 2006 (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 May 24, 2006 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 More sharing options...
joshiieeii Posted May 24, 2006 Author Share Posted May 24, 2006 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.. Projects:Vista Gui ImageX Deployment Tool - CompletedActive Directory Helper - CompletedGlobalized Outlook and OWA Signature Project - Completed Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now