Sign in to follow this  
Followers 0
emgenet

Problem with RunAsSet

4 posts in this topic

Hello, I have a pbm with the RunAsSet Command.

This is my script :

Sleep (1000)

RunAsSet ("administrateur", "domain", "password")

Run ("c:\commun.bat")

Sleep (1000)

and this is the error when I do a Go (F5).

>AU3Check Ended.

>Running: (3.1.1.0):C:\Program Files\AutoIt3\autoit3.exe "P:\AutoIt\Ocs_Service.au3"

P:\AutoIt\Ocs_Service.au3 (8) : ==> Unable to execute the external program.:

Run ("c:\commun.bat")

Le nom de répertoire est incorrect.

If I rem the RunAsSet the script run ok.

Could you help me

thanks

PS : excuse my english, but it's not my language.

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

emgenet welcome to AutoIt

==> Unable to execute the external program

I seen that message before. The way I fixed was by adding the Working directory.

Ex:

Run ("c:\commun.bat", @TempDir)

Edited by Danny35d

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

Apparently it's OK with the Working directory.

Thanks.

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