home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best Objectech Shareware Selections
/
UNTITLED.iso
/
boss
/
util
/
menu
/
017
/
sdlparms.bat
< prev
next >
Wrap
DOS Batch File
|
1991-03-26
|
10KB
|
219 lines
ECHO Off
IF NOT . == .%3 GOTO PARMSOK
ECHO Please start the setup program by running SDLSETUP.
GOTO QUIT
:PARMSOK
ECHO * * *
ECHO The first 5 selections are for some toggles:
ECHO SDL has several options which can be "toggled" by command line
ECHO switches. A toggle has only two possibilities, and the switch (option)
ECHO changes a toggle from its current setting to the opposite setting.
:MENU1
ECHO * * *
Echo 1 C Cls (Clear the screen)
Echo 2 M More (or Menu - pause at the end of each screen)
Echo 3 F Fre (Free space left on the disk)
Echo 4 H Hdr (Turn title lines off or on)
Echo 5 A All (Exclude "<DIR>"s and hidden files)
ECHO This section also includes defaults for:
Echo 6 S SORTing (Field, Reverse, Width)
Echo 7 COLumns (2,4,6)
Echo 8 Disk size (3.5,5.25)
Echo 9 Cluster size (0.5 1 2 4 8 Kb)
Echo After each selection you will return to the menu.
Echo Press Return or Esc to skip this section . . .
sdl_get c "Select by number: (1,2,3,4,5,6,7,8,9,cr) " 123456789CMFHAS~}
IF ERRORLEVEL 125 SDLNOTOG %1 %2 %3
if NOT %GET% == 1 goto SELECT%GET%
:SELECTC
sdl_get b
ECHO * * *
ECHO You may set the clear screen (Cls) default to Off or On.
ECHO When it is ON the screen is cleared before and after each display.
ECHO When it is OFF the screen just scrolls and is a bit slower.
Echo Whichever default you choose, the /C option will toggle it.
ECHO * *
sdl_get N "Do you want Cls ON to be the default mode (Y,n,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 22F 01>>SDLSETUP.TXT
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 22F 00>>SDLSETUP.TXT
GOTO MENU1
:SELECT2
:SELECTM
sdl_get b
ECHO * * *
ECHO SDL Version 5 uses "More" instead of "Pause" to stop and show
ECHO a Menu at the end of each screen display. This was changed from
ECHO earlier versions to reserve the /P option for Printing (Prn).
ECHO (Later you will be given the option to use /P for Pause if you prefer).
ECHO You may set the More/Pause default to Off or On.
Echo Whichever default you choose, the /M option will toggle it.
ECHO * * *
sdl_get N "Do you want pausing for More to be the default mode (Y,n,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 230 01>>SDLSETUP.TXT
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 230 00>>SDLSETUP.TXT
GOTO MENU1
:SELECT3
:SELECTF
sdl_get b
ECHO * * *
ECHO SDL Version 5 has a /F option for showing Free Space (Fre) on
ECHO a disk. On a hard disk SDL is much faster if it doesn't have to
ECHO wait for DOS to get the Free Space. On a floppy disk the amount
ECHO of free space may be of interest, but you can display it by
ECHO pressing the F key at the end of the display. You may, however,
ECHO have the Free Space displayed automatically as the default.
ECHO Whichever you choose, the /F option will toggle it.
ECHO * * *
sdl_get N "Do you want Free Space ON to be the default? (y,N,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 231 1>>SDLSETUP.TXT
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 231 0>>SDLSETUP.TXT
GOTO MENU1
:SELECT4
:SELECTH
sdl_get b
ECHO * * *
ECHO You may set the Header (Hdr) default to On or Off.
ECHO When OFF it suppresses the first two lines of titles to leave
ECHO more space on the screen for file names.
Echo Whichever you choose, the /H option will toggle it.
ECHO (Whether you set it Off or On, you will be given a chance
ECHO to enter your default titles later.)
ECHO * * *
sdl_get N "Do you want the full Hdr (ON) to be the default (Y,n,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 0232 15>>SDLSETUP.TXT
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 0232 13>>SDLSETUP.TXT
GOTO MENU1
:SELECT5
:SELECTA
sdl_get b
ECHO * * *
ECHO The /A for ALL option toggles the display of hidden files and directories.
ECHO If you select ALL as the default, SDL will automatically include
ECHO Hidden files and "<DIR>"s (subdirectories) in the directory display.
Echo Whichever default you choose, the /A option will toggle it.
ECHO * * *
sdl_get N "Do you want All to be the default mode (Y,n,cr)? "
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 ECHO E 233 00>>SDLSETUP.TXT
IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 ECHO E 233 16>>SDLSETUP.TXT
GOTO MENU1
:SELECT6
:SELECTS
sdl_get B
ECHO * * *
ECHO Reminder:
ECHO If you do not want to change a selection just press return (cr),
ECHO Press Esc to skip this section completely and go to the next menu.
ECHO * * *
ECHO The default SORT order (field) can be Name, eXtension, Date, or
ECHO the Original dOs order which is unsorted.
ECHO (Note that the letters above in CAPS are the option keys.)
ECHO * * *
sdl_get C "Press the letter for the SORT order you prefer (N,x,d,o,cr): " NXDO~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
SET GET=
IF ERRORLEVEL 88 IF NOT ERRORLEVEL 89 SET GET=58
IF ERRORLEVEL 79 IF NOT ERRORLEVEL 80 SET GET=4F
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 SET GET=4E
IF ERRORLEVEL 68 IF NOT ERRORLEVEL 69 SET GET=44
IF NOT ERRORLEVEL 125 ECHO E 022E %GET%>>SDLSETUP.TXT
ECHO * * *
ECHO The sorting of file names can be in ascending order or in reverse
ECHO order. This applies to the N,X,S, or D sort selections, and it
ECHO is controlled by the /- toggle or the - selection from the menu.
Echo For example, SDL /- will reverse the order for the default sort field
Echo that you have selected. Also, SDL /S- or SDL /S /- would select the
Echo S(ize) field for sorting and toggle the order in which to sort it.
Echo * * *
Echo You may set default sort orders for each of the four sort fields.
Echo (These switches are processed from left to right, so that SDL /- /S
Echo or SDL /-S would not produce the same result as the above example.)
:ASorDS
ECHO * * *
Echo Press the letter for the sort order you want to change, CR to
Echo return to the menu, Esc for the next menu.
Echo N - Change N(ame) sort order - original default is Ascending.
Echo X - Change X(tension) sort order - original default is Ascending.
Echo D - Change D(ate) sort order - original default is Descending.
Echo S - Change S(ize) sort order - original default is Descending.
ECHO * * *
sdl_get C "Press the letter for the SORT order to change (N,x,d,s,cr): " NXDS~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
if errorlevel 125 goto SELECTw
IF ERRORLEVEL 88 IF NOT ERRORLEVEL 89 SET SDL=C
IF ERRORLEVEL 83 IF NOT ERRORLEVEL 84 SET SDL=D
IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 SET SDL=E
IF ERRORLEVEL 68 IF NOT ERRORLEVEL 69 SET SDL=B
Echo You have selected %GET%
sdl_get C "Press A for Ascending, - for descending (A,-,cr): " A-~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 65 IF NOT ERRORLEVEL 66 ECHO E 23%SDL% 00>>SDLSETUP.TXT
IF ERRORLEVEL 45 IF NOT ERRORLEVEL 46 ECHO E 23%SDL% 01>>SDLSETUP.TXT
goto ASorDS
:SELECTw
echo * * *
echo File names can be listed in the sort order horizontally from left to
echo right, or vertically from top to bottom. Whichever default you choose,
echo the W (for Width) option will toggle it.
echo * * *
sdl_get C "Press W for horizontal, V for Vertical, or cr for no change (V,w,cr): " WV~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF ERRORLEVEL 87 IF NOT ERRORLEVEL 88 ECHO E 228 01>>SDLSETUP.TXT
IF ERRORLEVEL 86 IF NOT ERRORLEVEL 87 ECHO E 228 00>>SDLSETUP.TXT
GOTO MENU1
:SELECT7
sdl_get b
ECHO * * *
ECHO The default number of COLumns of files can be 2, 4 or automatic.
ECHO The original default is automatic which trys to show all the files on
ECHO one screen if possible. You can override the default with a
ECHO / option on the command line, or by making a new selection from
ECHO the menu at any pause.
ECHO * * *
sdl_get C "Press the number of COLs you prefer, or 0 for automatic (0,2,4,cr): " 024~}
IF ERRORLEVEL 126 SDLNOTOG %1 %2 %3
IF NOT ERRORLEVEL 125 ECHO E 022C %GET%>>SDLSETUP.TXT
GOTO MENU1
:SELECT8
sdl_get b
ECHO * * *
echo The type of disk can be selected with the 3 and 5 options; however, you
echo may select the default that will be used when t