Is there a way in Batch to stop/log if PSCP fails to transfer a file?

30 views Asked by At

The line for PSCP I am using is

pscp -scp -2 -pw %PDUPW% %curfileloc%\devices\%PDUName%\%PDUName%p15.p15 %PDUUser%@%PDUIP%:/ssl/%PDUName%.p15

What I am looking to do is if the file fails to upload to write to some log file which units the upload failed to

0

There are 0 answers