Jump to content

Problem with RunAsSet


Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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