| Switch On | |
| Power to Motherboard | |
| ROM Chips do POST | |
| I/O Set up | |
| System seeks MBR (Boot sector) | |
| PUTS data there in RAM | |
| System gets additional Operating System files as told by MBR |
| MBR Found and as above secondary loader put in RAM | |
| Secondary Loader moves IO.SYS and MSDOS.SYS into memory from HD | |
| DOS checks for CONFIG.SYS | |
| IF FOUND system reconfigured as told | |
| DOS Loads COMMAND.COM | |
| Checks for AUTOEXEC.BAT in root | |
| IF Found command.com carries out commands included. | |
| IF Not Found Command.com displays date and time prompts. |
| DEVICE=C:\WINDOWS\HIMEM.SYS | |
| DOS=HIGH, UMB | |
| DEVICE = EMM386.EXE NOEMS | |
| DEVICEHIGH=C:\DOS\SETVER.EXE | |
| STACKS=9,256 | |
| rem DEVICEHIGH = C:\DOS\ANSI.SYS | |
| FILES=99 | |
| DEVICE=C:\MTM\MTMCDAI.SYS /D:MTMIDE01 | |
| DEVICE=aspippa3.SYS | |
| rem means comment..above for zip drive |
Autoexec.bat Carries out Commands
| C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MTMIDE01 /M:10 /L:F | |
| ECHO OFF | |
| PROMPT $p$g | |
| PATH A:\;C:\WINDOWS;C:\;c:\DOS | |
| loadhigh C:\WINDOWS\mouse.COM /Y | |
| guest |
| DOS and other OS’s have defaults | |
| A default is what is chosen if there are many options. | |
| The default drive is the LOGGED drive | |
| If you have a A, C, D, drive typing DIR without a file spec gives a dir of the logged drive and path |
| Typing the letter of a drive and the colon symbol (:) and hitting the enter key changes that drive to the logged or default drive | |
| Typing A: and hitting enter changes to the A drive | |
| The A: should now show on the prompt line |
| You also can be logged into a directory or subdirectory. | |
| The Prompt shows what directory you are in | |
| If the prompt shows C:\DOS you are in the DOS directory in the C drive |
| The CD command changes the directory you are in. | |
| CD \ Changes to the root directory | |
| CD \WINDOWS Changes to windows if it is off the root directory | |
| NOTE: \ in a command means starting at the root directory of the drive. |
| Must be in the proper drive and directory for some commands | |
| CD COMMAND works if command is inside the present directly only | |
| CD \COMMAND works only if command comes off the root | |
| CD \WINDOWS\COMMAND always works if command is inside windows | |
| File Spec must be Exact! |
| DOS Syntax includes a Command, a space, a from specification, a space, and a to, or a where, a space, and optionally a / and a switch | |
| DIR A:\ Gives a directory of the specified drive and/or directory in this case the A drive | |
| DIR \WINDOWS gives a directory of the windows directory if it is on the logged drive | |
| Format A:\ Formats a Floppy A:\ is the what |
| Format A:\ /S Formats and puts operating system files on the floppy | ||
| /S is a DOS Switch. It adds the operating system to the disk | ||
| A Switch Modifies a DOS Command | ||
| CHKDSK C: Checks and Repairs HD and tells condition, size and available room | ||
| CHKDSK C: /F | ||
| Chkdsk Switch to fix lost chains | ||
| Fix Disk | |
| Check Capacity & Room | |
| Check RAM | |
| Switches F to fix, etc. |
| The Del or ERASE command erases files | |
| DEL C:\MYFILE.SYS erases a file named MYFILE.SYS in the root dir of the C drive | |
| * is the wild card command | |
| *.* means all files | |
| DEL *.* erases all files in the logged folder. | |
| If you were in windows this would erase all unprotected files in this directory |
| ATTRIB A: | ||
| Shows hidden files and Attributes R, A, S, H | ||
| ATTRIB A:MYFILE.ECE -R | ||
| Changes attributes of files | ||
| System: S (Used by the OS) | ||
| Hidden: H (can’t see in directories) | ||
| Read Only: R (cant be changed) | ||
| Archive: A (not backed up) | ||
| RD C:\DOCS or RMDIR C:\DOCS | |
| Removes the indicated directory | |
| The directory must be empty of files first | |
| Easy way is to DEL C:\DOCS\*.* first | |
| DELTREE C:\DOCS | |
| Removes the directory and files | |
| Also removes any subdirectories! | |
| Dangerous if not used properly! |
| Many commands have been dropped or changed in recent windows | |
| No DELTREE command, but DEL *.* /S erases all files in the logged directory and all subdirectories! |
| REN myfile.bak newfile.tem | ||
| Can rename a file to a new name! | ||
| REN C:\DOCS\LETTER.DOC LETTER2 | ||
| SYNTAX | ||
| REN old file spec space new file spec | ||
| TREE C:\DOS | ||
| TREE A:\ | ||
| Shows structure of indicated path | ||
| Syntax | ||
| TREE space DISK and/or DIRECTORY Not in Windows DOS’s… | ||
| Sets the places where DOS looks for command files | ||
| PATH=C:\;C:\DOS | ||
| Each separate path is separated by a ; | ||
| Usually put in autoexec.bat | ||
| Without path must specify files location | ||
| E.G: | ||
| C:\DOS\FORMAT A: | ||
| DIR, Memory Resident in Command.com | |
| FORMAT, external requires finding the program FORMAT.EXE to work |
| DOS directory in DOS PC’s | |
| Windows directory | |
| \WINDOWS\COMMAND | |
| \WIN95 |