SCP from Command Line

I have used WinSCP for many years now. Its a great product, but sometimes, it is rather slow when copying/moving large files. Instead of using WinSCP, users can initiate a file/directory transfer via the CLI. The command syntax is: Downloading a Directory: scp -r user@ssh.example.com:/path/to/remote/source /path/to/local/destination Uploading a Directory: scp -r /path/to/local/source user@ssh.example.com:/path/to/remote/destination In the example below, I am copying …

Copy Directory Tree to Single Directory

The flowing commands will copy all the files in a directory tree to a single directory. First, from the command prompt, CD to the top node of the directory tree: cd /d “C:\Users\topoftree” Then execute to following which will cycle through all child directories, copying all content to the directory of your choosing: for /r %d in (*) do copy …