Page 1 of 1

possible selected folders if content desktop.ini ?

Posted: 27 Dec 2015 20:38
by drjs5x
hi dears.

my example folder1 folder2 folder3 folder4 etc...
i select folders and i want to move to c:\target if content desktop ini ?
how can i do?


example content desktop ini ,, folder 1 folder 3 .. move to folder 1-3 moveto c:\target.
sincerely

Re: possible selected folders if content desktop.ini ?

Posted: 27 Dec 2015 21:00
by highend

Code: Select all

    setting "BackgroundFileOps", 0;
    foreach($folder, "<get SelectedItemsPathNames |>") {
        if (regexmatches(listfolder($folder, , 1), "desktop\.ini")) {
            moveto "C:\target", $folder, , 2;
        }
    }

Re: possible selected folders if content desktop.ini ?

Posted: 27 Dec 2015 21:05
by drjs5x
great thank you dear big coder.... :appl: :appl: :appl: :appl:

Re: possible selected folders if content desktop.ini ?

Posted: 28 Dec 2015 14:16
by drjs5x
great work but how set for subfolder ?

example folder 01 ... sub folder 01 (desktop.ini) ...
how can add subfolder option???


thanks..

Re: possible selected folders if content desktop.ini ?

Posted: 28 Dec 2015 14:24
by highend
use a quicksearch() instead of listfolder()?

Re: possible selected folders if content desktop.ini ?

Posted: 28 Dec 2015 14:30
by drjs5x
im newbie coder , an example please :)
ofcourse , if you do not mind ..
thanks for support.
Sincerely.

Re: possible selected folders if content desktop.ini ?

Posted: 28 Dec 2015 14:33
by drjs5x
?*desktop.ini* /p i tried...
but select subfolder no select up folder....

Re: possible selected folders if content desktop.ini ?

Posted: 28 Dec 2015 14:43
by highend
No clue what you're talking about.

If you do not want to copy the root folder but instead check every subfolder for a desktop.ini file (and only copy those subfolders), use a quicksearch() for subfolders inside each root folder and a new foreach loop to copy only those which contain that file.

Re: possible selected folders if content desktop.ini ?

Posted: 28 Dec 2015 14:56
by drjs5x
dear sorry my bad english.
for good understand .. i draw grapics :))



http://prntscr.com/9jfut1

now can u understand me dear?

clue good :))

Re: possible selected folders if content desktop.ini ?

Posted: 28 Dec 2015 15:05
by highend
Again, just use the appropriate quicksearch() command instead of the listfolder() one...

Re: possible selected folders if content desktop.ini ?

Posted: 28 Dec 2015 15:07
by drjs5x
okay i try