Topic "synchronize remote -filemask Synchronizing based on a partial filename"

Author Message
untouchable

Guest


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

Filesnames always start with pds and then any further letters.
I have tried with: synchronize remote -filemask="pds*." but I always get a error
to much parameters for the command.

How is the correct command

thx
Andreas
Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
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

Guest


Hi martin

attached you'll find the log

Regards
Andreas


martin wrote:
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.
winscp.log (8.01 KB) [Download]

Description: winscp.log

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
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
Advertisements

You can post new topics in this forum

Search

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