Sign in to follow this  
Followers 0
Chetwood

Hold down Ctrl or Shift to choose multiple FOLDERS

5 posts in this topic

Well, I'm still fiddling around on with some ideas to improve my tool MultiShrink. Is there a way to open several folders at once from a FileOpenDialog? For example,

I have a folder called m:\movies which has these subfolders

m:\movies\movie_a\

m:\movies\movie_b\

m:\movies\movie_c\

m:\movies\movie_d\

m:\movies\movie_e\

each of which has ifos/bups/vobs as one would expect. Now I would like to use a function similar to the FileOpenDialog that would allow me to CTRL-left-click movie_a, movie_d and movie_e but only if the file "video_ts.ifo" is in there:

$movies = FileOpenDialog("Select movies", "m:\movies\", "movie files (*.ifo;*.iso)", 1 + 4 )

with $movies resulting in m:\movies|movie_a|movie_d|movie_e

Is this at all possible or do I have to do my own GUI creat function (listview)?


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



Is there a way to open several folders at once from a FileOpenDialog?

folders... no, i really dont believe so

but if you use

FileSelectFolder

then something like

$fHandle = FileFindFirstFile($Temp_Dir & $Temp_File); directory (C:\...???) and type of file (*.avi or ???)

If $fHandle >= 0 Then

While 1

$result = FileFindNextFile($fHandle)

If @error Then ExitLoop

If $result <> "." And $result <> ".." Then

If StringInStr(FileGetAttrib($Temp_Dir & $result), "D") Then

MsgBox(0,"Test", " this is a folder " & $Temp_Dir & $result)

ConsoleWrite("folder" & $Temp_Dir & $result) ; send it where you want it... or no-where?

Else

MsgBox(0,"Test", " this is a file " & $Temp_Dir & $result)

;If $File name has .??? extention you want then...

ConsoleWrite("file" & $Temp_Dir & $result) ; send it where you want it...

EndIf

EndIf

EndIf

WEnd

FileClose($fHandle)

EndIf

Hope it helps

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

folders... no, i really dont believe so

I was thinking about something like this

Posted Image

where I could either use the +/- buttons to add/delete (when marked in the list) folders or simply open the main folder 'e:\movies' in explorer and drag some subfolders over to the list. Any suggestions/code snippets? 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

the "snip-it" above could fill your input box.... have you looked at it????


NEWHeader1.png

Share this post


Link to post
Share on other sites

the "snip-it" above could fill your input box.... have you looked at it????

<{POST_SNAPBACK}>

Of course, but I'm kind of illiterate when it comes to understanding other ppl's code examples :( What I don't get is why you're using FileFindFirstFile cause I need to drop folders and not files which does not work with this command...

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

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