synchronize remote -filemask Synchronizing based on a partial filename

Advertisement

untouchable
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

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.

Reply with quote

untouchable
Guest

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

Hi martin

attached you'll find the log

Regards
Andreas
Description: winscp.log

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

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

Reply with quote

Advertisement

You can post new topics in this forum