home *** CD-ROM | disk | FTP | other *** search
-
- BATCHSEL 1.1
- Batch File Selector
-
- Copyright (c)1991 by P.A. Geelen, Amsterdam.
- Email: geelen@cs.vu.nl
-
- This program was put in the Public Domain by the author. It may
- be distributed freely. It may not be sold, nor be made part of
- anything that is sold.
-
- NOTE: My latest programs and updates can
- always be found at ABBS, 03240-62502/62504
-
-
- BATCHSEL is a simple program that is meant to ease the use of many
- programs that require filename paramters.
- It is primarily meant to be used in batch files. It will offer an alpha-
- betically sorted file selection window, out of which the user can choose
- one file. The files displayed in this window can be restricted to a certain
- set, and you can specify your own title" (or "prompt") for the window.
-
- The window works as follows:
-
- - The arrow keys, HOME, END, PGUP and PGDN will move the cursor
- to point to another file or subdirectory.
- - pressing RETURN on a filename will select that filename.
- - pressing RETURN on a directory will cause a change to that
- directory.
- - pressing ESC will abort the file selection.
- ERRORLEVEL will then be set to 1.
- - pressing any letter will move your cursor to the next file or
- subdirectory starting with that letter.
-
-
- USAGE:
-
- BATCHSEL <match> <text> <dos command>
-
- Where
-
- <match> is a (wildcarded) filename, specifying which kind
- of file the user should choose,
- <text> is the text that will be displayed as "prompt".
- because the DOS command-line can't handle spaces,
- use the underscore "_" whenever you need a space.
- <dos command>
- is any dos command you would like to execute.
- BATCHSEL will replace every occurance of "%%f"
- with the selected filename.
- NOTE: IF USED FROM THE DOS PROMPT, AND NOT FROM
- A BATCH FILE, USE %f INSTEAD OF %%f!
-
- The batch file "demo" in this archive contains an example:
-
- batchsel *.* Select_a_file_to_view TYPE %%f |MORE
-
- i.e. the DOS command
-
- TYPE <filename> |MORE
-
- will be executed after the user has chosen a file.
- Other examples:
-
- batchsel *.DOC Select_a_file_to_print TYPE %%f >PRN
- batchsel *.ASM Assemble_which_file? MASM %%f;
- batchsel *.EXE RUN_WHICH_FILE? %%f;
-
- See also the demonstration batch files...
-
- Have fun.