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

martin

Re: synchronize remote -filemask Synchronizing based on a partial filename

Your problem has nothing to do with the -filemask argument. It's about the spaces in the paths.
You have to enclose the paths with spaces to double quotes:
synchronize remote -filemask="pds*." "M:\Produktedokumentation\Datenblätter\deutsch\01 Motorenoele" "/share/CACHEDEV1_DATA/STRUB-Data/Deutsch/01 Motorenoele/01 Datenblätter"

See https://winscp.net/eng/docs/scripting#quotes
untouchable

Re: synchronize remote -filemask Synchronizing based on a partial filename

Hi martin

attached you'll find the log

Regards
Andreas
martin

Re: synchronize remote -filemask Synchronizing based on a partial filename

Your syntax is correct, assuming you are not using some ancient version of WinSCP.

If you get the problem with even the latest version of WinSCP, please attach a full session log file showing the problem.

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
untouchable

synchronize remote -filemask Synchronizing based on a partial filename

Hi there
I'm trying to synchronize remote files based on a partial filename.

Filenames always start with pds and then any further letters.
I have tried with:
synchronize remote -filemask="pds*."

But I always get a error
too much parameters for the command.

How is the correct command

thx
Andreas