Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WINSCP issue

Status
Not open for further replies.

Cretin

Technical User
Jan 2, 2003
194
US
Hey we are running 3 instances of WINSCP at the same time. We run them using OEM (Grid scheduler) as the scheduling agent to run DOS .bat programs that invoke WINSCP to transfer files using SFTP. We recently upgraded to version 5.5.3 from 4.2.9 due to intermittant transfer failures. However when we upgraded we now get the intermittant failures The system cannot find the batch label specified – setInputFileName. That label is in the .bat program.

rem -- Print to log file
Echo * >> %V_INPUT_PATH%\BC700_%V_LOG_DATE_TIME%.log
ECHO ++++++++++++++++++++ Flag file: %%a *******************>> %V_INPUT_PATH%\BC700_%V_LOG_DATE_TIME%.log
ECHO * >> %V_INPUT_PATH%\BC700_%V_LOG_DATE_TIME%.log

set V_FILES_FOUND=1
call :setInputFileName %%a
)

if %V_FILES_FOUND% == 0 (
echo No flag files were found >> %V_INPUT_PATH%\BC700_%V_LOG_DATE_TIME%.log
)
goto deleteStatusFile


:setInputfileName


When we started getting the failures we put the version back to 4.2.9. and those failures cleared up. Are there any ideas that I could start researching and testing on?

Cretin
 
1) Is "setInputFileName" a batch file or a label? If it's a batch file, the correct syntax would be call setInputFileName %%a
2) But, you also have it as a label (the last line) ??
3) Assuming "setInputFileName" is a batch file, you are passing in %%a, but that implies you were using a FOR / DO loop, which you don't have. Actually the extra ) implies that it was there once but since partially deleted?
4) and you have goto deleteStatusFile, but no label called deleteStatusFile
 
setinputfile is a label, my apologies I did not include all of the code. The label delete status file is down in the program

Echo Deleting %V_INPUT_PATH%\filethere.%1 >> %V_INPUT_PATH%\BC700_%V_LOG_DATE_TIME%.log
del %V_INPUT_PATH%\filethere.%1
Echo * >> %V_INPUT_PATH%\BC700_%V_LOG_DATE_TIME%.log

goto end_of_file

:deleteStatusFile
if exist %V_STATUS_FILE% (
echo Deleting status file >> %V_INPUT_PATH%\BC700_%V_LOG_DATE_TIME%.log
del %V_STATUS_FILE%

They all worked before going to WINSCP 5.5.3 and after we went back to the previous version they worked it is only when using WINSCP 5.5.3 that they do not work.





Cretin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top