Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Pascal

Sorry

I am not on the good forum :?

I have found the good syntax now for do it

regards
Pascal

version of pscp is the last one 0.65
Pascal

escape spaces in path during pscp batch copy in windows (pull file)

Hello

Maybe somebody have same issue in past

I would like pull a file from a windows computer wit space in path (I know that is better whitout space but I cannot change organisation for historical configuration

so, my commande is for example

below command not works, I have a message : pscp: C:\Sftpfolder\USER1\EXPORT\accountion\folder with space": Cannot create file

C:\Toolspscp.exe -sftp -v -batch -l USER1 -pw 123456 USER1@XXX.XXX.XXX.XXX:"/folder with space/filename space.xls" "C:\Sftpfolder\USER1\EXPORT\accountion\folder with space\"

below this one works (space can be use for source not for target) strange no ?

C:\Tools\pscp.exe -sftp -v -batch -l USER1 -pw 123456 USER1@XXX.XXX.XXX.XXX:"/folder with space/filename space.xls" C:\Sftpfolder\USER1\EXPORT\accountion\folderwithoutspace\

I have found lot of topic on the web but no one have solution
https://superuser.com/questions/532919/how-to-use-pscp-to-copy-file-from-unix-machine-to-windows-machine-where-target-p

I have tested with "C:\folder with space" or C:\"folder with space" or C:\folder\\ with\\ space

I have space name in source and target

some can help me ?

Thanks in advance