Wednesday, January 22, 2020
Managing A Personal Computer :: essays research papers
Managing A Personal Computer 1.1 The AUTOEXEC.BAT file is one of files which loads every time the computer is booted. It contains command lines and procedures to run programs and load settings for the systemââ¬â¢s hardware and software configuration. It also may contain command lines procedures to run programs which may clean your systemââ¬â¢s hard drive of temporary files and viruses. An example of this file is shown below: @ECHO OFF PROMPT $P$G SET PATH=C:DOS LH C:SBCDDRVMSCDEX.EXE /S /D:MSCD001 /M:8 /V SET BLASTER=A220 I5 D1 T4 SET SOUND=C:SBPRO C:MOUSEMMOUSE.COM The first line of this batch file, @ECHO OFF, is programming command which hides all the command lines procedures from the user. The second line is also a programming command that configures the CUI command prompt. The parameters after PROMPT tell the CUI what to show. The $P stands for current drive and path and $G stands for the greater than sign (>). Apart from those two parameters, a user can add any characters after PROMPT and itââ¬â¢ll be shown as the command prompt. The next command configures the CUI to search for files in that directory first before looking in its current location. The SET and PATH command procedures, even though different commands, are used in conjunction to configure CUI environment variables and the parameters displayed after that are what the CUI will search in first. The next command is loading DOSââ¬â¢s CD-Rom drive letter allocater (The CD-Rom driver must be loaded first in the CONFIG.SYS). The parameters after the executable file inform the CUI to allocate a particular drive letter for the CD-Rom and also may inform the CUI to allocate extended memory or how to read the CD-Rom in terms of speed and sectors. The LH configures the CUI to load this command procedure in high or extended memory. The next command procedure allocates the Interrupt and Drive Memory allocation for the systemââ¬â¢s sound card as well as informing the CUI of the sound cardââ¬â¢s input/output range. The next command procedure informs the CUI to look for all the drivers for the sound card in its parameters which will be a directory on the hard disk. The last command loads the driver for the mouse. This command procedure doesnââ¬â¢t need any parameters and is just a single command procedure telling the CUI to load that executable file. 1.2 A Batch File Which Asks For User Input: @echo off cls IF "%1"=="C" GOTO DRIVE IF "%1"=="D" GOTO DRIVE if "%1"=="c" goto drive if "%1"=="d" goto drive
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.