Sign in to follow this  
Followers 0
Agent Orange

Run trouble

7 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Run("c:\changer.exe" & " " & GUICtrlRead($UserString) & " " & GUICtrlRead($currentpassword) & " " & GUICtrlRead($newpassword))

Edited by AzKay

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Anybody have an idea?

Share this post


Link to post
Share on other sites

Did you try my idea? T_T


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

...Can I use a UNC path to the network drive when using a Run command?...

yes

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

try :

Run('"c:\changer.exe" ' & GUICtrlRead($UserString) & " " & GUICtrlRead($currentpassword) & " " & GUICtrlRead($newpassword))

If it doesn't work: What credentials are you running with ?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  
Followers 0