PDA

View Full Version : Don't sync subdirectories.


SeekneSs
29-Apr-2005, 12:45 AM
What is the commando for a script when using select and filter, to not include subfolders?
I want a sync of inst.* in x:\BBS and not the subdirectories of it...

Chris
29-Apr-2005, 08:33 AM
If you use the visible option for the sync command, it won't sync folders that aren't expanded, so as long as you don't have an expand all command, it will ignore subfolders.

Here's an example:

criteria timestamp size
filter "inst.*"
load %1 %2
sync visible mirror:lt->rt

SeekneSs
03-May-2005, 01:20 AM
and when i don't use the sync command?

Chris
03-May-2005, 09:12 AM
If you aren't using the sync command, as long as you don't include an expand all command, using the .files option for the select command, such as "select all.files" should keep you from affecting subdirectories.