----- Original Message ----- From: "David McTavish" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 08:26 Subject: ant exec and error=5
> Can anybody help explain why I am getting a "CreateProcess error=5" when I > attempt to exec the Windows regsvr32.exe to register a dll? > > Here is my target: > <target name="compile.init"> > <exec executable="regsvr32.exe" dir="lib"> > <arg value="/?"/> > </exec> > </target> > > Results: > BUILD FAILED > file:M:/dmctavish_main/sw/application/ada/build.xml:146: Execute failed: > java.io.IOException: CreateProcess: > M:\dmctavish_main\sw-tools\vb\bin\regsvr32.exe CSHttpClient.dll error=5 > > I know that the exec command is finding the regsvr32.exe executable as if I > put a bogus name in, I always get the infamous "error=2". However, I'm not > aware what the error=5 means. from WinError.h // MessageId: ERROR_ACCESS_DENIED // // MessageText: // // Access is denied. // #define ERROR_ACCESS_DENIED 5L -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>