Author Topic: moving winbatch scripts from window 2003 server to window 2012 r2 server  (Read 186 times)

winbatch2017u

  • Newbie
  • *
  • Posts: 2

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

  • Tech Support
  • *****
  • Posts: 2139
    • WinBatch
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.
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates


winbatch2017u

  • Newbie
  • *
  • Posts: 2
thanks for help i will check these things