Agent Orange Posted October 12, 2006 Share Posted October 12, 2006 I'm trying to run a Run command that will launch and app on the local c: drive. The script is running on a mapped network drive. When I run the script it errors and says it can't find the files path. Here the command. Run(c:\changer.exe " & GUICtrlRead($UserString) & " " & GUICtrlRead($currentpassword) & " " & GUICtrlRead($newpassword)) Thanks Link to comment Share on other sites More sharing options...
AzKay Posted October 12, 2006 Share Posted October 12, 2006 (edited) Run("c:\changer.exe" & " " & GUICtrlRead($UserString) & " " & GUICtrlRead($currentpassword) & " " & GUICtrlRead($newpassword)) Edited October 12, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Agent Orange Posted October 12, 2006 Author Share Posted October 12, 2006 Anybody have an idea? Link to comment Share on other sites More sharing options...
AzKay Posted October 12, 2006 Share Posted October 12, 2006 Did you try my idea? T_T # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Agent Orange Posted October 12, 2006 Author Share Posted October 12, 2006 I'm sorry...what is your idea? Here is what I have in the script. Run("c:\changer.exe" & " " & GUICtrlRead($UserString) & " " & GUICtrlRead($currentpassword) & " " & GUICtrlRead($newpassword)) If I'm running the script from a network drive letter and the changer.exe is local on the c drive then it won't work....It gives me the path not found error. If I run the script from the network drive and put the changer.exe on the same network drive I still get the error. Can I use a UNC path to the network drive when using a Run command? Thanks Link to comment Share on other sites More sharing options...
herewasplato Posted October 12, 2006 Share Posted October 12, 2006 ...Can I use a UNC path to the network drive when using a Run command?...yes [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Developers Jos Posted October 12, 2006 Developers Share Posted October 12, 2006 try : Run('"c:\changer.exe" ' & GUICtrlRead($UserString) & " " & GUICtrlRead($currentpassword) & " " & GUICtrlRead($newpassword)) If it doesn't work: What credentials are you running with ? 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...
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