I use pscp command to copy files but it does not write logs. Can anyone please suggest? Here is the syntax of the pcsp script:
pscp C:\Users\jbsmith\directory\*.txt jbsmith@cheyenne.ucar.edu:/glade/u/home/$USER
make use of psftp command which will server the purpose.
cd "C:\Program Files (x86)\PuTTY" psftp -b script.txt @ -pw