! FLIST_EXTENSION_FILE.INIT ! ! This file comprises groups of TPU commands so the layout is quite ! relaxed, as long as you start each new 'file_type' on a new line. ! You can squash it all on to one line, or spread it out and pad ! with spaces or tabs, as the examples below do. ! ! The punctuation, however is quite strict. You need all the quotes ! and the colon+equals, and the slashes to delimit file-types, and ! the semi-colons to separate the file-types and their associated ! variables. ! ! Uncomment any you want, and add any others you can think of. Start ! any comment lines with '!' ! ! You can use single or double quotes to enclose the extension and ! the commands - I have done both in these examples. (This can be ! useful if the DCL command required quotes in it.) ! ! You can also remove all these comment lines to see if that makes ! FLIST start up any faster! (I've found no difference, but YMMV.) ! ! ! The command strings are FAO strings, so the filenames replace the ! "!AS" directives. For the 'extract' commands, the first !AS is the ! container file and the second is the file to extract. If the syntax ! to extract requires these in the opposite order, start the command ! with the "!+" directive. If you need to re-use a parameter, you can ! use the "!-" directive. ! file_type := ".BCK/.SAV"; list_command := "BACKUP /LIST !AS /SAVESET"; extract_command := "BACKUP /LOG !AS /SAVESET *.* /SELECT=!AS" file_type := '.ZIP'; list_command := 'UNZIP "-l" !AS'; extract_command := 'UNZIP "-oj" !AS "!AS"' file_type := ".OLB/.HLB/.TLB/.MLB"; list_command := "LIBRARY /LIST !AS"; extract_command := "LIBRARY !AS /EXTRACT=!AS /OUT=!-!AS /LOG" ! Note that TAR is the only example I could find where the filename ! to extract does not start at column 1 in the listing. file_type := ".TAR"; list_command := 'VMSTAR /VERBOSE/LIST !AS'; extract_command := 'VMSTAR /VERBOSE/EXTRACT !AS "!AS"'; extract_position := 38 ! ! The following 2 do not a have any matching extract commands as there ! is nothing to extract.. file_type := ".OBJ"; list_command := "ANALYZE /OBJECT !AS" file_type := ".EXE"; list_command := "ANALYZE /IMAGE !AS" ! ! In my experience, file types of .A,.B, etc. are most often BACKUP ! savesets from a VMSINSTAL package, so I've added the following. ! Remove these lines if that is not your experience. file_type := ".A/.B"; list_command := "BACKUP /LIST !AS /SAVESET"; extract_command := "!+BACKUP /LOG /SELECT=!AS !AS /SAVESET *.*" ! ! (I could have just added this lot after .SAV in the 1st entry, but ! decided to do it like this to show the "!+" directive in action. ! I stopped at .B because .C files are more usually C-source code ! files. If you find a .C VMSinstal package use Gold-V. If you never ! look at C-programs you can add '/.C' in here.) ! ! Add any more of these that you want. Remove any you don't want.