only jpg files backupto selected folders...

Discuss and share scripts and script files...
Post Reply
drjs5x
Posts: 153
Joined: 18 Nov 2015 18:12
Location: Turkey

only jpg files backupto selected folders...

Post by drjs5x »

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
newbie or not...........

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: only jpg files backupto selected folders...

Post by highend »

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...

Post by drjs5x »

highend .. you are wonderfull and why no " setting "BackgroundFileOps", 0; " line?

other scripts this line starting???
why this script no this line?

:appl: :appl: :appl: :appl: :appl: :appl:
newbie or not...........

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: only jpg files backupto selected folders...

Post by highend »

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...

Post by drjs5x »

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"
newbie or not...........

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: only jpg files backupto selected folders...

Post by highend »

backupto doesn't support the [rootpath] to recreate folder structures.

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...

Post by drjs5x »

really thanks dear for your help. you are big coder u are master coder. thanks. :appl: :appl: :appl: :appl: :appl: :appl: :appl:
newbie or not...........

Post Reply