home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
MENU
/
KYSS37.ZIP
/
DOS.MNU
< prev
next >
Wrap
Text File
|
1991-02-13
|
3KB
|
96 lines
REM: DOS.MNU called from SYSTEM.MNU
HDG: DOS SYSTEM COMMANDS & UTILITIES
POS: 6,26
ORD:
Floppy Disk Format Menu FORMAT
HLP:DOS.HLP 1
MNU:FORMAT
Duplicate Floppy Disk DISKCOPY
HLP:DOS.HLP 2
INP:Enter SOURCE drive name as d: (A:,B:, or D:)
INP:Enter TARGET drive name as d: (A:, B:, or D:)
REM:Check for valid source/target drive specifications
FOR %%f IN (A:,a:,B:,b:,D:,d:) DO IF ($1)==(%%f) GOTO CHKTARGET
ECHO $1 is not a valid SOURCE drive specification
goto ERROR
:CHKTARGET
FOR %%f in (A:,a:,B:,b:,D:,d:) DO IF ($2)==(%%f) GOTO DRIVESOK
ECHO $2 is not a valid TARGET drive specification
GOTO ERROR
:DRIVESOK
ECHO
DISKCOPY $1 $2
GOTO END
:ERROR
ECHO
ECHO You must enter "A:" "B:" or "D:" for both SOURCE and TARGET drives
ECHO Please touch any key and try again.
KYPAUSE > NUL:
:END
Backup Hard Disk BACKUP
HLP:DOS.HLP 8
MSG:This will back up all files on your hard disk Drive C: to floppy &
disks in Drive A:. NOTE: Unless your backup disks are pre-formatted, &
you MUST use disks that are the same as the target drive. In other &
words, use 360K disks in a 360K drive, etc.
BACKUP C:\*.* A: /S/F
Disk Confidence Check CHKDSK
HLP:DOS.HLP 3
INP:Please Enter drive to check (A: to Z:) or <Enter> for current &
drive.
IF $1~==~ GOTO DEFALT
CHKDSK $1: /F
GOTO END
:DEFALT
CHKDSK /F
:END
KYPAUSE
Display/Add To/Restore Path PATH
HLP:DOS.HLP 7
XIT:
INP:A=Add to end I=Insert @ beginning R=Restore path &
<Enter>=Display
INP:Enter:Full path name as d:\dir\subdir or <Enter> to display
REM: Adapted from PC Magazine's rspath.bat
IF "$1"=="" GOTO end
FOR %%f IN (R,r) DO IF "$1"=="%%f" GOTO reset
IF "$2"=="" GOTO error
FOR %%f IN (A,a) DO IF "$1"=="%%f" GOTO append
IF "$1"=="A" GOTO append
FOR %%f IN (I,i) DO IF "$1"=="%%f" GOTO insert
GOTO end
:append
SET op=%path%
PATH=%path%;$2
GOTO end
:insert
SET op=%path%
PATH=$2;%path%
GOTO end
:reset
PATH=%op%
SET op=
:end
PATH
REM: KYPAUSE
pause
Display Environment SET
MSG:You will notice a single line of strange characters as the last &
line in the DOS environment. This is used by the KYSS! system and &
is normal.
HLP:DOS.HLP 5
SET
KYPAUSE
Set Date/Time DATE/TIME
INP: Enter date as: mm-dd-yyyy (NOTICE be sure to use "-" chars.)
INP: Enter time as: hh:mm:ss in 24-hour format (1 pm. is 13:00:00)
HLP:DOS.HLP 4
XIT:
DATE $1
TIME $2
Memory Information (DOS 4) MEM
HLP:DOS.HLP 6
XIT:
MEM|MORE
KYPAUSE