Using Synchronize Script to only Sync files and not Subfolders

Advertisement

CaptainHoek
Guest

Using Synchronize Script to only Sync files and not Subfolders

Hi There,

I need to synchronize a bunch of files in a folder but don't want the sub folders to synchronize.

I am a newbie to this. I have tried:-
synchronize local -preservetime -filemask=*.jpg
but it also syncs three sub folders that are on the local host.

Any help much appreciated.

Cheers
Mark

Reply with quote

Advertisement

CaptainHoek
Guest

Using Synchronize Script to only Sync files and not Subfolders

Thanks for your reply Martin.

If I use:-
synchronize local -preservetime -filemask="|*/"
it works fine but copies all files from the localhost. I just want to copy all jpgs.

I've tried:-
synchronize local -preservetime -filemask="|*/" *.jpg
but get this error:-
Error listing directory '*.jpg\*.*'.
Error retrieving file list for "*.jpg\*.*".
System Error.  Code: 123.
The filename, directory name, or volume label syntax is incorrect
(A)bort, (R)etry, (S)kip: Abort
Any help appreciated.

Cheers
Mark

Reply with quote

CaptainHoek
Guest

Using Synchronize Script to only Sync files and not Subfolders

Please ignore last post.

I found the syntax I needed as below:-
synchronize local -preservetime -filemask="*.jpg |*/"
Thanks again for all the help.
Cheers
Mark

Reply with quote

Advertisement

You can post new topics in this forum