Topic "upload *.*"

Author Message
Haroon KHAN

Guest


When i use put -delete c:\upload\*.* /remote/in all the files from c:\upload\archive\*.* also get uploaded.. Is there a way to avoid sub folders upload?

thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
You can use exclude mask:
https://winscp.net/eng/docs/scriptcommand_option
https://winscp.net/eng/docs/file_mask#directory_mask
_________________
Martin Prikryl
Haroon KHan

Guest


Thanks for reply... But exclude option is ignored if i use -delete swtich?

Delete source local file(s) after transfer. Options exclude and include are ignored.


martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Sorry you are right.
_________________
Martin Prikryl
-DB-Vryce

Guest


I have used the exclude command with *.* successfully. The trick is that you have to follow up the upload with separate delete command.

Exclude ....
put c:\upload\*.* /remote/in
cd \
cd upload
Delete *.*


I hope that this helps you out.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
You can already use excluding with -delete
https://winscp.net/tracker/show_bug.cgi?id=536
_________________
Martin Prikryl
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