PSCP returns an ERRORLEVEL of zero (success) only if the files were correctly transferred. You can test for this in a batch file, using code such as this:
ERRORLEVEL
pscp file*.* user@hostname: if errorlevel 1 echo There was an error
Submit feedback about this site to: