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

chipmunkofdoom2

Synchronize - File Mask Not Ignoring Subdirectories

Hello,

I am using the WinSCP.com executable with command line arguments. I am running Windows 7 and simply running this command from the command prompt. I have tried everything I can think of, but I cannot seem to get the command to exclude subdirectories when syncing. The sync command works just fine and transfers the files, but then it continues on to the subdirectories, which I do not want. I looked all over the forums and tried the filemask="/*" argument, but can't seem to figure it out. Here is the command I'm using. How do I get it to ignore subdirectories?
E:\WinSCP.com /command "open ""myuserid@mysite.com""" "synchronize local -mirror ""-filemask=*.zip"" ""E:\Inbound\"" ""/Site/Files/""" "exit"

I'm using the latest version of WinSCP (5.1.4). The site is FTP protocol with SSL Explicit encryption. Thanks a million!