possible selected folders if content desktop.ini ?

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

possible selected folders if content desktop.ini ?

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

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

Re: possible selected folders if content desktop.ini ?

Post by highend »

Code: Select all

    setting "BackgroundFileOps", 0;
    foreach($folder, "<get SelectedItemsPathNames |>") {
        if (regexmatches(listfolder($folder, , 1), "desktop\.ini")) {
            moveto "C:\target", $folder, , 2;
        }
    }
One of my scripts helped you out? Please donate via Paypal

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

Re: possible selected folders if content desktop.ini ?

Post by drjs5x »

great thank you dear big coder.... :appl: :appl: :appl: :appl:
newbie or not...........

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

Re: possible selected folders if content desktop.ini ?

Post by drjs5x »

great work but how set for subfolder ?

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


thanks..
newbie or not...........

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

Re: possible selected folders if content desktop.ini ?

Post by highend »

use a quicksearch() instead of listfolder()?
One of my scripts helped you out? Please donate via Paypal

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

Re: possible selected folders if content desktop.ini ?

Post by drjs5x »

im newbie coder , an example please :)
ofcourse , if you do not mind ..
thanks for support.
Sincerely.
newbie or not...........

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

Re: possible selected folders if content desktop.ini ?

Post by drjs5x »

?*desktop.ini* /p i tried...
but select subfolder no select up folder....
newbie or not...........

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

Re: possible selected folders if content desktop.ini ?

Post 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.
One of my scripts helped you out? Please donate via Paypal

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

Re: possible selected folders if content desktop.ini ?

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

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

Re: possible selected folders if content desktop.ini ?

Post by highend »

Again, just use the appropriate quicksearch() command instead of the listfolder() one...
One of my scripts helped you out? Please donate via Paypal

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

Re: possible selected folders if content desktop.ini ?

Post by drjs5x »

okay i try
newbie or not...........

Post Reply