Topic "All files upload form current directory only"

Author Message
without name

Guest


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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
I hope that "option exclude */" should exclude all subdirectories.
_________________
Martin Prikryl
without name

Guest


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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
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 Smile
You may use "call rm *" as workaround.
_________________
Martin Prikryl
without name

Guest


Ok. I use in script file:
option batch continue
option confirm off
it is help.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License