MikeR Posted May 31, 2006 Share Posted May 31, 2006 (edited) 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 May 31, 2006 by MikeR Link to comment Share on other sites More sharing options...
bucky002 Posted May 31, 2006 Share Posted May 31, 2006 Eh, because it can't find the file specified? Link to comment Share on other sites More sharing options...
nfwu Posted June 1, 2006 Share Posted June 1, 2006 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. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now