The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-08-2009
dajones70 dajones70 is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
Can we delete file using PSCP?

Use PSCP.EXE to get the file and PSFTP.EXE to delete after checking the return code.

PSCSP.EXE [options]
IF “%ERRORLEVEL%” == “1” GOTO ERROR
PSFTP.EXE [options] -b del.batch
GOTO END
:ERROR
ECHO "There was an error getting the file."
REM Use blat.exe to send emails. SourceForge.net: Blat - A Win32 Command Line SMTP Mailer
:END