Chetwood Posted June 13, 2005 Posted June 13, 2005 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
Valuater Posted June 13, 2005 Posted June 13, 2005 Is there a way to open several folders at once from a FileOpenDialog?folders... no, i really dont believe sobut if you useFileSelectFolderthen 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) EndIfHope it helps8)
Chetwood Posted June 14, 2005 Author Posted June 14, 2005 folders... no, i really dont believe soI was thinking about something like thiswhere 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
Valuater Posted June 14, 2005 Posted June 14, 2005 the "snip-it" above could fill your input box.... have you looked at it????
Chetwood Posted June 14, 2005 Author Posted June 14, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now