Code: Select all
backupto "Z:\delee\Pictures\_Media Artwork\test", "Q:\ABBA DVDs, Documentaries, etc", "2", "1", "0", "0", "0", "0", "1", "*.jpg|*.jpeg|*.png", "2";Code: Select all
backupto "Z:\delee\Pictures\_Media Artwork\test", "Q:\ABBA DVDs, Documentaries, etc", "2", "1", "0", "0", "0", "0", "1", "*.jpg|*.jpeg|*.png", "2";"*.jpg|*.jpeg|*.png|-*\subs\*"Thanks but it didn't work. I still get an empty subs folder.
Am I misunderstanding what that means?
Code: Select all
$source = "Q:\ABBA DVDs, Documentaries, etc";
$items = quicksearch("*.jpg;*.jpeg;*.png", $source, , "s");
$result = writefile("%TEMP%\source.txt", formatlist($items, "f", <crlf>, "!*\subs\*"), , "tu");
backupto "Z:\delee\Pictures\_Media Artwork\test", "*%TEMP%\source.txt", "2", "1", "0", "0", "0", "0", "1", , "2";
That gave me no folders at all - not even the source folder (ABBA DVDs, Documentaries, etc). I think maybe I left out information that would make things clearer. The folder structure is like this:highend wrote: ↑20 Apr 2026 12:10 You will get the \subs folder, create a file list first (with \subs excluded) and supply that to the backupto command
E.g.:Code: Select all
$source = "Q:\ABBA DVDs, Documentaries, etc"; $items = quicksearch("*.jpg;*.jpeg;*.png", $source, , "s"); $result = writefile("%TEMP%\source.txt", formatlist($items, "f", <crlf>, "!*\subs\*"), , "tu"); backupto "Z:\delee\Pictures\_Media Artwork\test", "*%TEMP%\source.txt", "2", "1", "0", "0", "0", "0", "1", , "2";
Q:
ABBA DVDs, Documentaries, etc
ABBA The Movie (1977)
subs
backdrop.jpg
folder.png
logo.png
The Golden Years (2007)
subs
folder.jpg
backdrop.png
"*.jpg|*.jpeg|*.png|-subs\"Code: Select all
$dst = "Z:\delee\Pictures\_Media Artwork\test";
setting "BackgroundFileOps", 0;
backupto $dst, "Q:\ABBA DVDs, Documentaries, etc", "2", "1", "0", "0", "0", "0", "1", "*.jpg|*.jpeg|*.png", "2";
delete 1, 0, quicksearch("*\subs* /d", $dst);
Code: Select all
$dst = "C:\Temp\dst";
$src = "C:\Temp\src";
new("$src\subs", "dir");
new("$src\a.jpg", "file");
new("$src\subs\b.jpg", "file");
backupto $dst, $src, "2", "1", "0", "0", "0", "0", "1", "*.jpg|*.jpeg|*.png|-subs\", "2";
Code: Select all
backupto $dst, $src, "2", "1", "0", "0", "0", "0", "1", "*.jpg|*.jpeg|*.png|-*\subs\*", "2";
Code: Select all
! SC backupto, SC sync: The "filter" parameter excluded all subfolders if it contained
any file patterns. Fixed. Now, for example, the filter "*.bas|*.ini|*.txt|-appdata\"
only allows BAS, INI, and TXT files to pass through, as well as all folders except
those called "appdata", just as expected.
Code: Select all
sync "Q:\ABBA DVDs, Documentaries, etc", "Z:\delee\Pictures\_Media Artwork\test", 1, 0, 0, "bckn", 7:="*.jpg|*.jpeg|*.png|-subs\";Thank you so much, Don. That works great. I tweaked the code so that the target folder was named the same as the source folder (ie: ABBA DVDs, Documentaries, etc) and now it's perfect.admin wrote: ↑20 Apr 2026 15:47 After the fix is uploaded, this should work for the OP:Code: Select all
sync "Q:\ABBA DVDs, Documentaries, etc", "Z:\delee\Pictures\_Media Artwork\test", 1, 0, 0, "bckn", 7:="*.jpg|*.jpeg|*.png|-subs\";