moving winbatch scripts from window 2003 server to window 2012 r2 server

Started by winbatch2017u, May 18, 2017, 01:26:45 PM

Previous topic - Next topic

winbatch2017u


line 127 on script error  below begin=ibegin(0,"", "")
ConnectToCHPMainframe


     BeginHandle=iBegin(0, "", "")
     MFHandle=iHostConnect(BeginHandle, MFHostname, @FTP, MFUser, MFPW)

     If MFHandle == 0
          CurrentDateTime=TimeYmdHms()
          FileWrite(LogHandle, "***** ERROR! Failed to Connect to CHP Mainframe - Aborting Job - %CurrentDateTime% *****")
          ESPReturnCode=16
          GoTo FinishJobWithError
     EndIf

td

The AddExtender function will generate a 1394 error, if a you do not have the extender installed - or 1437 if you are loading an extender with the wrong bitness.  So either the AddExtender call to load the WinInet extender is not getting called or it is wrapped in an error handler so that it doesn't get a chance to display an error.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade