hi
example : 3-4 folder select and a custom button script : only backupto jpg;png;bmp files..
possible?
backupto "<xydata>\Cache",,"1",,"0","0","only:*.jpg;*.png;*.bmp"
//1=overwrite if newer... 10=Overwrite if different
only jpg files backupto selected folders...
-
drjs5x
- Posts: 153
- Joined: 18 Nov 2015 18:12
- Location: Turkey
only jpg files backupto selected folders...
newbie or not...........
-
highend
- Posts: 14940
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: only jpg files backupto selected folders...
Code: Select all
$dstFiles = quicksearch("*.jpg;*.png;*.bmp", "<get SelectedItemsPathNames ;>", "|");
backupto("R:\Temp", $dstFiles, < all your other options for backupto >);One of my scripts helped you out? Please donate via Paypal
-
drjs5x
- Posts: 153
- Joined: 18 Nov 2015 18:12
- Location: Turkey
Re: only jpg files backupto selected folders...
highend .. you are wonderfull and why no " setting "BackgroundFileOps", 0; " line?
other scripts this line starting???
why this script no this line?

other scripts this line starting???
why this script no this line?
newbie or not...........
-
highend
- Posts: 14940
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: only jpg files backupto selected folders...
backupto doesn't need it.
One of my scripts helped you out? Please donate via Paypal
-
drjs5x
- Posts: 153
- Joined: 18 Nov 2015 18:12
- Location: Turkey
Re: only jpg files backupto selected folders...
dear
""
$dstFiles = quicksearch("*.jpg;*.png;*.bmp", "<get SelectedItemsPathNames ;>", "|");
copyto("c:\Temp", $dstFiles, "10","10","10","10","100");
""
""
$dstFiles = quicksearch("*.jpg;*.png;*.bmp", "<get SelectedItemsPathNames ;>", "|");
backupto("c:\Temp", $dstFiles, ,"10",,"0","0");
""
backupto successfull //10 overwrite if different but no folder structure
copy to yes folder structure but " //10 overwrite if different" dont work
how can copyto with folder structure + " //10 overwrite if different"
""
$dstFiles = quicksearch("*.jpg;*.png;*.bmp", "<get SelectedItemsPathNames ;>", "|");
copyto("c:\Temp", $dstFiles, "10","10","10","10","100");
""
""
$dstFiles = quicksearch("*.jpg;*.png;*.bmp", "<get SelectedItemsPathNames ;>", "|");
backupto("c:\Temp", $dstFiles, ,"10",,"0","0");
""
backupto successfull //10 overwrite if different but no folder structure
copy to yes folder structure but " //10 overwrite if different" dont work
how can copyto with folder structure + " //10 overwrite if different"
newbie or not...........
-
highend
- Posts: 14940
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: only jpg files backupto selected folders...
backupto doesn't support the [rootpath] to recreate folder structures.
so you either use copyto or create structures in a foreach loop yourself.
so you either use copyto or create structures in a foreach loop yourself.
One of my scripts helped you out? Please donate via Paypal
-
drjs5x
- Posts: 153
- Joined: 18 Nov 2015 18:12
- Location: Turkey
Re: only jpg files backupto selected folders...
really thanks dear for your help. you are big coder u are master coder. thanks.

newbie or not...........
XYplorer Beta Club