Page 1 of 1
copyto or backupto only jpg png gif bmp files with folder structure
Posted: 12 Mar 2018 08:36
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.
Re: copyto or backupto only jpg png gif bmp files with folder structure
Posted: 12 Mar 2018 09:10
by highend
E.g.:
Code: Select all
copyto "c:\target\", quicksearch("/n *.jpg;*.jpeg", , "|"), <curpath>, 2, 1;
Re: copyto or backupto only jpg png gif bmp files with folder structure
Posted: 12 Mar 2018 09:30
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 .
Re: copyto or backupto only jpg png gif bmp files with folder structure
Posted: 12 Mar 2018 09:41
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;
Re: copyto or backupto only jpg png gif bmp files with folder structure
Posted: 12 Mar 2018 09:56
by drjs5x
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 .

Re: copyto or backupto only jpg png gif bmp files with folder structure
Posted: 12 Mar 2018 11:50
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";