Jump to content
Sign in to follow this  

AutoIT Error

Recommended Posts

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...