Author Topic: moving winbatch scripts from window 2003 server to window 2012 r2 server  (Read 91 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: 2055
    • 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.
"DON'T PANIC”
The Hitchhiker's Guide to the Galaxy, Douglas Adams


winbatch2017u

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