I'm trying to run SCP on my Windows box through a batch file.
I want to do something like:
scp "C:\myfile.txt" user@host:path
Of course scp thinks that "C" is my source host and "\myfile.txt" is my source path. I can't seem to find a way to escape the colon.
These don't work:
scp "C\:\myfile.txt" user@host:path scp "C::\myfile.txt" user@host:path scp "C^:\myfile.txt" user@host:path
SCP man pages suggest that using the "absolute or relative pathname" should eliminate this problem but I'm using the absolute pathname and this is still an issue. They likely mean it eliminates the problem on *nix where absolute and relative pathnames start with "/" or ".".
Suggestions (aside from throwing my Windows box off the freaking roof)?