Sign in to follow this  
Followers 0
Chetwood

How to select multiple folders at once?

2 posts in this topic

Am I missing something again? I want to browse to a folder which has 20 or so subdirs and select 4 or 5 of those. How do I do it? TIA!


MultiMakeMKV: batch processing for MakeMKV (Win)MultiShrink: batch processing for DVD ShrinkOffizieller Übersetzer von DVD Shrink deutsch

Share this post


Link to post
Share on other sites



There is only what is documented in the help file. Nothing more and nothing less. You have the functions to achieve your goal.

You can use FileFindFirstFile/FileFindNextFile to to get the subfolder names and search within them with the same functions. Or you could use COMs SubFolders method to get the subfolders and then use FileFindFirstFile/FileFindNextFile to search inside them. Another idea is to use ComSpec and the Dir command to get a list of subfolders etc.

Here is a COM example for getting subfolders

Global $cCollection, $oFSO, $oItem, $oFolderPath, $sTotal
$oFSO = ObjCreate('Scripting.FileSystemObject')
If Not @error Then
    $oFolderPath = $oFSO.GetFolder(@WorkingDir & '\')
    $cCollection = $oFolderPath.SubFolders
    For $oItem In $cCollection
        MsgBox(0, '', $oItem.Name)
    Next
EndIfoÝ÷ Ù©Ýi@ÅrÜzZºÚ"µÍÈ]ÈHÛÈÛÛXÝ[ÛÛÛÚÝ[ÈÙ[ÛÈÛÛZ[Y[HÜXÚYYYÛÈ[ÛY[ÈÜÙHÚ]Y[[ÞÝ[H[H]X]ÈÙ]ÌÍÜÝXÛÈHÔÝXÛÊÛÜÚ[Ñ    [È ÌÎNÉÌLÉÌÎNÊBYÝÜ[SÙÐÞ
    ÌÎNÐ[ÝXÛÉÌÎNË  ÌÍÜÝXÛÊBIÌÍÜÜ]HÝ[ÔÜ]
    ÌÍÜÝXÛËÔJBRYÝÜ[BQÜ    ÌÍÚHHHÈ ÌÍÜÜ]ÌBBBSÙÐÞ
    ÌÎNÑXXÚÝXÛÌÎNË ÌÍÜÜ]ÉÌÍÚWKJBBS^Q[Y[Y^][ÈÔÝXÛÊ ÌÍÜÑÛ]
BSØØ[ ÌÍØÐÛÛXÝ[Û  ÌÍÛÑÓË    ÌÍÛÒ][K ÌÍÛÑÛ] ÌÍÜÕÝ[IÌÍÛÑÓÈHØÜX]J    ÌÎNÔØÜ[Ë[TÞÝ[SØXÝ ÌÎNÊBRYÝÜ[BIÌÍÛÑÛ]H   ÌÍÛÑÓËÙ]Û   ÌÍÜÑÛ]
BBIÌÍØÐÛÛXÝ[ÛH  ÌÍÛÑÛ]ÝXÛÂBQÜ  ÌÍÛÒ][H[    ÌÍØÐÛÛXÝ[ÛBBIÌÍÜÕÝ[    [ÏH    ÌÍÛÒ][K[YH  [ÈÔBS^BT]Ý[ÔÝÔÊ  ÌÍÜÕÝ[ÊBQ[ÙBBT]Ù]ÜK    ÌÎNÉÌÎNÊBQ[Y[[

Other examples would be around if you searched the forum. Look at any UDFs in the help file that may ease the effort.

:)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0