Jump to content
Sign in to follow this  
MikeR

AutoIT Error

Recommended Posts

MikeR

I have an AutoIT script that has been running on many machines but errors on one in particular. The command line is:

RunWait(@ComSpec & " /c " & 'echo y|REG ADD \\%COMPUTERNAME%\HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v forceguest /t REG_DWORD /d 0',"",@SW_HIDE)

(Turn off simple file sharing)

On a WXP workstation, the following error occurs:

Error: Unable to execute the external program

The system cannot find the file specified.

Any ideas why this is occuring?

Edited by MikeR

Share this post


Link to post
Share on other sites
bucky002

Eh, because it can't find the file specified? :)

Share this post


Link to post
Share on other sites
nfwu

First, try checking your PATH variable.

Then, check if running the command REG at a MS-DOS Shell works.

Otherwise, try removing the "echo y|" from the beginning of the line, and replace RunWait with Run, then using StdCinRead (or something like that) to send the "y".

Just a few things that I would try out myself.

#)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.