home *** CD-ROM | disk | FTP | other *** search
- :: LOOK.BTM
- set source=%@search[%0]
- :: %@filename[%source] - displays files and directories in current
- :: directory from which user can select any number of files or
- :: directories. Files selected will be displayed using 4DOS LIST
- :: command. Directories selected will be displayed, permitting
- :: user to select additional files and directories.
- :: Written by Sam Wilson (sam.wilson@emerald.com)
- :: ------------------
- :: Syntax:
- :: %@name[%source] [filespecs]
- :: (If no filespecs indicated, all filenames will be displayed)
- :: Switches:
- :: h, or ? -- This HELP
-
- if %@index[%&,h] eq 0 .or. %@index[%&,?] eq 0 goto help
- setlocal
- set n=-1
- call settemp
- set f=%@unique[%temp]
- if .%1==. set 1=*.*
- select /d echo>> %f (%_cwds%%1%)
-
- :loop
- set n=%@eval[%n+1]
- set sl=%@line[%f,%n]
- iff %sl == **EOF** then
- goto end
- elseiff isdir %sl then
- select echo>> %f (%sl\*.*)
- else
- list %sl
- endiff
- goto loop
-
- :end
- del /q %f
- endlocal
- quit
-
- :help
- iff exist %@search[masthelp] then
- call masthelp
- cancel
- else
- cls^screen 3 0
- screen %@eval[%_row+1] 4 You must have %@upper[masthelp.btm]
- screen %@eval[%_row+1] 4 for this HELP procedure to work
- echo.
- quit
- endiff
-
-
- cls
- screen 2 0
- text
- LOOK.BTM - displays files and directories in current directory
- from which user can select any number of files or directories.
- Files selected will be displayed using 4DOS LIST command.
- Directories selected will be displayed, permitting user to select
- additional files and directories.
- Written by Sam Wilson (sam.wilson@emerald.com)
-
- Syntax:
-
- LOOK [filespecs]
- (If no filespecs indicated, all filenames will be displayed)
- Switches:
- --------
- h, or ? -- This HELP
-
- endtext
- quit