copyto or backupto only jpg png gif bmp files with folder structure

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

copyto or backupto only jpg png gif bmp files with folder structure

Post by drjs5x »

hi dears
copyto or backupto only jpg png gif bmp files with folder structure..
backupto "c:\target\", , "10","0","0","0","0","0","1", 9:="*.jpg|*.jpeg";
i can but i cant with folder structure :(

please help me.
newbie or not...........

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: copyto or backupto only jpg png gif bmp files with folder structure

Post by highend »

E.g.:

Code: Select all

copyto "c:\target\", quicksearch("/n *.jpg;*.jpeg", , "|"), <curpath>, 2, 1;
One of my scripts helped you out? Please donate via Paypal

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: copyto or backupto only jpg png gif bmp files with folder structure

Post by drjs5x »

work good but folder structure full path with driver full path same path every files?
this example: copied c:\target\exaple\01\test.jpg.....

folder structure full path : copied c:\target\D\exaple\01\test.jpg.....


thanks for script .
newbie or not...........

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: copyto or backupto only jpg png gif bmp files with folder structure

Post by highend »

Then use a different root path, e.g.

Code: Select all

copyto "c:\target\", quicksearch("/n *.jpg;*.jpeg", , "|"), gpc(<curpath>, "drive") . ":\", 2, 1;
One of my scripts helped you out? Please donate via Paypal

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: copyto or backupto only jpg png gif bmp files with folder structure

Post by drjs5x »

:appl: :appl: :appl:
i fixed dear. thanks for help.


$q=<curpath>;$q = replace($q, ':', '');backupto "c:\target\".$q."\", , "10","0","0","0","0","0","1", 9:="*.jpg|*.jpeg";

%100 working with folder structure .
:appl:
newbie or not...........

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: copyto or backupto only jpg png gif bmp files with folder structure

Post by drjs5x »

"fullpath COPYTO...." $surucumu=strpos(<curpath>, ":");if ($surucumu==-1){$q=<curitempath>;$q = replace($q, ':', '');echo $q} ELSE {$q=<curpath>;$q = replace($q, ':', '');echo $q};backupto "c:\target\".$q."\", , "10","0","0","0","0","0","1", 9:="*.jpg|*.jpeg";
newbie or not...........

Post Reply