Transfer Files between Windows and Unix


To get the files and folder using psftp command based instead of winscp 

Windows > Run > cmd  
 

 Windows Commands
           Set the PATH with the directory of putty programs which contains psftp.exe file also.

                > SET PATH=%PATH%;C:\Programfiles\putty            
          Change the directory to the path from/to where the files needs get placed 
               > cd D:\temp

               > psftp <user>@<machineName> -i Key.ppk

PSFTP commands

           psftp> cd <folder where the files / folder exists>

  Unix machine to the Windows machine.
            psftp> mget -r <directoryname>
                    or
            psftp> mget <filename>

                direcory or file will be placed in the putty folder

            psftp> mget -r 20130820103908
                20130820103908: Cannot create directory
                make sure the same file or folder is not already exists in the current windows folder.

   Windows machine to the Unix machine.

           psftp> mput -r <directoryname>
                    or
            psftp> mput <filename>

            direcory or file will be placed in the putty folder

            psftp> mput -r 20130820103908
                20130820103908: Cannot create directory
                make sure the same file or folder is not already exist