All files upload form current directory only

Advertisement

without name
Guest

All files upload form current directory only

Hi,
I`m using command "echo put C:\myfiles\*.* /root/ | winscp3.com root@mysshserver". And all files, including subdirectories copying on server. How can i copy files only from C:\myfiles\ directory, exclude any subdirectories.
Thanks.

Reply with quote

Advertisement

without name
Guest

Re: All files upload form current directory only

Thank You very much, this is work, but in this case i can use script file. Another question: how can i delete files without subfolder (i use in script: option exclude */;
rm /root/transfer/*.*)? Winscp try delete folder /root/transfer/aaa, and they get error: "Error deleleting file '/root/transfer/aaa'. General failure..." etc.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: All files upload form current directory only

without name wrote:

Another question: how can i delete files without subfolder (i use in script: option exclude */;
rm /root/transfer/*.*)? Winscp try delete folder /root/transfer/aaa, and they get error: "Error deleleting file '/root/transfer/aaa'. General failure..." etc.
I'm afraid that WinSCP cannot do that easily. Maybe in next version :-)
You may use "call rm *" as workaround.

Reply with quote

Advertisement

You can post new topics in this forum