Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: 1932 error level list errors WinExec Undefined Lasterror
1932:WINEXEC: Undefined Error "Stop" RUN("F:WIN31\hpint14r.pif",""]
This error was a bug in older versions (5.X?) of WinBatch. For those versions, try the following workaround:
ErrorMode(@OFF) Run("dosbat","params") ErrorMode(@CANCEL) Last=LastError() if Last != 1932 then goto oops ... :Oops Message("Error on Run command",Last) Exit
Run(Login.Exe,"")I have verified with the user that they do have the executable being run (as well as the necessary privileges to run it). In looking at your support documentation, I noticed that the same error code had a different message:
1932: "WinExec: Undefined Error"Was this an older version of the message I am receiving (I have version 97D 32-bit)? Or is my error returning an incorrect message somehow? What other problems would cause a 1932 error to be returned?
Here is my line of code
RunWithLogon("\\wemart\croot\sdat.exe", "/silent", "", @NORMAL, @NOWAIT, runas_user, runas_domain, runas_pswd, 1)
1932: Winexec: The System cannot find the path specifiedThis is the command line
RunWithLogon("F:\COMMON\isapps\grouprem.exe", "", "", @NORMAL, @WAIT, runas_user, runas_domain, runas_pswd,0)I then tried
RunWithLogon("F:\COMMON\isapps\grouprem.exe", "", "F:\COMMON\isapps\", @NORMAL, @WAIT, runas_user, runas_domain, runas_pswd,0)which produced 1932:Winexec: Function Failed:
I also tried
dirchange("F:\COMMON\isapps\") tmppath=environment("path") tmppath=strcat(tmppath,";F:\COMMON\isapps\") environset("PATH",tmppath) tmppath=environment("path") isit=direxist(runpath) message( "runpath",isit) RunWithLogon("F:\COMMON\isapps\grouprem.exe", "", "F:\COMMON\isapps\", @NORMAL, @WAIT, runas_user, runas_domain, runas_pswd,3)message came up with a 1 but I still got the error 1932:Winexec: Function Failed:
RunWithLogon("\\servername\sharename\COMMON\isapps\grouprem.exe", "", "F:\COMMON\isapps\", @NORMAL, @WAIT, runas_user, runas_domain, runas_pswd,0)FAILED
I have verified that the user account that is being specified for RunWithLogon() actually has access to the file that RunWithLogon() is supposed to be executing.
I copied the files local and changed the program to call the EXEs from a local path and it runs great.
Why would this be so difficult to get working on XP when it works great with 2000.
I actually ran this program on 500 Windows 2000 macines with success and it failed on our 5 XP machines.
On Windows Server 2003 and Windows XP: RunwithLogon accesses the specified program (exe) in the security context of the target user (the user specified in RunwithLogon).
If the executable image is on a network and a network drive letter is specified in the path, the network drive letter is not available to the target user, as network drive letters can be assigned per logon. If a network drive letter is specified, this function will fail. If the executable image is on a network, use the UNC path.
Please try the following code:
RunWithLogon("\\servername\sharename\COMMON\isapps\grouprem.exe", "", "", @NORMAL, @WAIT, runas_user, runas_domain, runas_pswd,0)
Article ID: W12949
Filename: 1932 WinExec Errors.txt
File Created: 2010:08:03:10:12:30
Last Updated: 2010:08:03:10:12:30