home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
sysutl
/
srs236.arc
/
SRF1.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-10-10
|
1KB
|
26 lines
echo off
echo Start the shell (SR); point to any file; then,
echo enter Function Key [F1] causing SRF1.BAT to be executed.
echo Up to 40 [command_server] files maybe defined per directory
echo -------------------------------------------------------------------
echo SAMPLE USER DEFINED COMMANDS - shell_state values
echo -
echo command = %0
echo shell set = %1
echo current drive = %2
echo current path = %3
echo selected file name = %4
echo selected file extension = %5
echo full path = %2:%3%4.%5
echo -------------------------------------------------------------------
echo The following is an example how to edit, with your editor, the
echo current selected or tagged file from within the shell.
echo -
echo myeditor %2:%3%4.%5 - or - myeditor %4.%5
echo -------------------------------------------------------------------
echo Other examples of batch [command_server] files used with the shell:
echo -
echo %4.%5 (execute the selected or tagged file)
echo copy %4.%5 lpt1: (print the selected or tagged file)
echo arc a myarc.arc %4.%5 (archive the selected or tagged file)
echo on