Download Files from Directory with Spaces in Batch

Advertisement

reiibs
Joined:
Posts:
6
Location:
Austria

Download Files from Directory with Spaces in Batch

Hi,

I had read the Post "CD to Directory with Spaces", but this didn't solves my problem.
I want to download only Files from a directory without subdirs. I tried the following command: winscp3.com user@host /command "option exclude */" "get /dir/dir with spaces/" Exit and the error message says "Can't get attributes for file '/dir/dir' and also permission denied.

How can i solve that or is it not possible. If i must not use a scriptfile it would be absolutly great.

Many Thanks
Reinhard

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Download Files from Directory with Spaces in Batch

Do to limitations of command-line parsing on Windows, you cannot do that. You need to use script file.

Reply with quote

reiibs
Joined:
Posts:
6
Location:
Austria

Hi,

I found an other solution. When you use "echo get "Sourcepath" "Destionationpath" | Winscp3.com than its working.

If details are needed please write me a note.

Regards
Reinhard

Reply with quote

Advertisement

You can post new topics in this forum