Bài giảng Bài tập DOS

@ECHO OFF

PATH C:\DOS;C:\NC;C:\WINDOWS;C:\WINDOWS\COMMAND

LH C:\DOS\SMARTDRV.EXE /X

LH C:\DOS\MSCDEX.EXE /D:MSCD001

cls

if exist c:\baitap\nul deltree /y c:\baitap\*.*

if exist c:\tt\nul deltree /y c:\tt\*.*

if not exist c:\temp1\nul md c:\temp1

if not exist c:\temp2\nul md c:\temp2

if not exist c:\temp3\nul md c:\temp3

subst e: c:\temp1

subst d: c:\temp2

subst f: c:\temp3

cls

ppt7 trang | Chia sẻ: hienduc166 | Lượt xem: 711 | Lượt tải: 0download
Bạn đang xem nội dung tài liệu Bài giảng Bài tập DOS, để tải tài liệu về máy bạn click vào nút TẢI VỀ ở trên
BT.1@ECHO OFFPATH C:\DOS;C:\NC;C:\WINDOWS;C:\WINDOWS\COMMANDLH C:\DOS\SMARTDRV.EXE /XLH C:\DOS\MSCDEX.EXE /D:MSCD001clsif exist c:\baitap\nul deltree /y c:\baitap\*.*if exist c:\tt\nul deltree /y c:\tt\*.*if not exist c:\temp1\nul md c:\temp1if not exist c:\temp2\nul md c:\temp2if not exist c:\temp3\nul md c:\temp3subst e: c:\temp1subst d: c:\temp2subst f: c:\temp3clsBT.3ECHO OFFCLSDATETIMEpausePATH C:\DOS;C:\NC;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOUCH;C:\PASCALEcho 	A. NCEcho 	B. TouchEcho 	C. Turbo PascalEcho 	D. WinEcho 	E. Exit@Echo OFF; Co the su dung MENU	Choice /c:abcde Choice an optionif errorlevel 5 goto Exitif errorlevel 4 goto Winif errorlevel 3 goto Turbo Pascalif errorlevel 2 goto Touchif errorlevel 1 goto NCBT.3 (Cont):Exitgoto end:NCncPAUSEgoto end:TouchtouchPAUSEgoto end:Turbo PascaltpPAUSEgoto end:WinwinPAUSEgoto end:endBT.12DEVICE=C:\WINDOWS\COMMAND\HIMEM.SYSDEVICE=C:\WINDOWS\COMMAND\EMM386.EXE NOEMSDOS=HIGH,UMBFILE=60DEVICE=C:\WINDOWS\COMMAND\RAMDRIVE.SYS 1500 256 50 /EDEVICE=C:\WINDOWS\COMMAND\RAMDRIVE.SYS 1000 /ABT.13DEVICE=C:\WINDOWS\COMMAND\HIMEM.SYSDEVICE=C:\WINDOWS\COMMAND\EMM386.EXE NOEMSDOS=HIGH,UMBFILE=40BUFFERS=40,2DEVICEHIGH=C:\WINDOWS\COMMAND\SMARTDRV.EXEDEVICE=C:\WINDOWS\COMMAND\RAMDRIVE.SYS /ADEVICE=C:\WINDOWS\COMMAND\RAMDRIVE.SYS 750 /EBT.14[menu]menuitem=NOCD, Start computer without CD-ROM support.menuitem=CD, Start computer with CD-ROM support.menuitem=SO_3, Cau hinh 3menudefault=CD,30[NOCD][CD]files=40buffers=20,2dos=high,umbdevicehigh=c:\windows\command\smartdrv.exedevicehigh=c:\drv\asus.sys /D:mscd001 BT.14 (Cont)[QUICK][SO_3]files=40buffers=20,2dos=high,umbdevicehigh=c:\windows\command\smartdrv.exedevicehigh=c:\drv\asus.sys /D:mscd001 devicehigh=ramdrive.sys /E 2048 256 100devicehigh=ramdrive.sys /E 1024[COMMON]device=c:\windows\command\himem.sysdevice=c:\windows\command\emm386.exe 

File đính kèm:

  • pptBT DOS.ppt
Bài giảng liên quan