home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / DOS_HELP / PCLEARN.ZIP / DOS1.TUT < prev    next >
Encoding:
Text File  |  1988-12-13  |  21.8 KB  |  491 lines

  1.  
  2.    
  3. -------------------------------------------------------------------------
  4.  USING DOS THE EASY WAY - A ONE HOUR PAINLESS CRAM COURSE
  5. -------------------------------------------------------------------------
  6. DOS stands for disc operating system. DOS is the software program
  7. which controls the primary input and output of your computer while you
  8. use your primary application program. For example, you may want to
  9. use a spreadsheet or a wordprocessor. Those programs accept and manage
  10. your data, but DOS controls the flow of data to and from the disc drives,
  11. the keyboard, the screen and other "background/behind the scenes" 
  12. activities.   
  13.            
  14. Learning about DOS isn't that difficult after all. It seems that 
  15. beginners live in fear of DOS. A better way to do things is to 
  16. imagine that DOS is a kitchen of cooking tools and helpful 
  17. chefs waiting for your instructions on what to fix for lunch. 
  18. Here's the point of the analogy: you've got to be a little comfortable 
  19. in the kitchen to live (no food - no you!). Same thing with DOS. 
  20. Learn just a little and you can survive with the computer. But just
  21. as with the kitchen, a steady diet of peanut butter sandwiches may keep
  22. you alive (i.e., passing familiarity with only 4 or 5 DOS commands) but
  23. as with the kitchen, life is more flavorful eating a variety
  24. of things like steak, salad and dessert. OK, let's go . . .
  25.  
  26. When you first turn on the computer with only the DOS disc in place
  27. (assuming nobody has installed some automatic startup software)
  28. you get the lonesome a>
  29.  
  30. It might also be b> or c>. All that the chefs in the kitchen (DOS
  31. helpers in the computer) are saying is that they are interested in
  32. floppy storage drive a: b: or c: (c: is usually a hard drive, more on
  33. this later.)
  34.  
  35. a> is called a DOS prompt
  36. b> is also called a DOS prompt
  37.  
  38. Let's try switching drives.  If you see   a>     try this . . . .
  39.  
  40. (example)                       b:    <enter>
  41.  
  42. The computer now pays attention to b: (b drive). Hopefully there is
  43. a disc in b drive or DOS gets confused and can give you an error message.
  44.  
  45. Try switching around to the other drives, go back and forth a few times.
  46.  
  47. Now try this . . .
  48.  
  49. (example)                     a>ver    <enter>
  50.  
  51. you get a report from DOS on what version and type of DOS you are using.
  52.  
  53. try this . . .
  54.  
  55. (example)                      a>time  <enter>
  56. (example)                      a>date  <enter>
  57.  
  58.  
  59. Get the idea? Type in a word or phrase and something happens.
  60. But just what are the words and phrases?
  61.  
  62. Let's jump into the kitchen (into trouble) deeper . . .
  63.  
  64. (example)                      a>dir/p   <enter>
  65.  
  66.   
  67. you get a listing of files in the drive (hopefully a disc is there)
  68. Notice that we added  /p to the end of a command. P is shorthand for
  69. "pause after each screenful."  The word dir means directory (a list
  70. of files or programs on the disc.) 
  71.  
  72.  
  73.  
  74.  
  75. Try this . . . 
  76.  
  77. (example)                       a>dir/w    <enter>
  78.  
  79. The w by the way is shorthand for "wide screen display"
  80.                                   
  81.  
  82.  
  83. (example)                       a>dir a:   <enter>
  84.  
  85. (example)                       a>dir b:   <enter>
  86.                                                                            
  87. You will notice that the DOS prompt stays with or in the drive
  88. you started from but examines the other drive directory then
  89. COMES BACK to where you started from. Another way of explaining this
  90. is that you can switch back and forth between drives (typing a:
  91. or b:) and ask for directories. OR you can stay in a drive and
  92. ask DOS to look at either a: or b: 
  93.  
  94. Tip--->  Many beginners eventually figure this out!
  95.  
  96. "DOS is a computer operating system. Many of its commands once loaded
  97. stay inside the machine. As long as the power is on, these internal
  98. commands stay resident (stay put) and are called INTERNAL commands.
  99. DIR is an example of an INTERNAL COMMAND - it lives inside the computer
  100. once DOS is loaded.
  101.  
  102. EXTERNAL COMMANDS however only live on the DOS disc and can be copied
  103. to other discs (example: sort.com). They load TEMPORARILY into the
  104. computer, do their job and then are gone. EXTERNAL DOS COMMANDS
  105. MUST HAVE A DOS DISC (OR COPY) of that command in a disc drive
  106. when you need them."  As an example, DISKCOPY is an EXTERNAL COMMAND.
  107.  
  108. Tip---> While we are concentrating on DOS at the moment it is 
  109. important to understand that DOS is only an operating system.
  110. DOS is only the first step. The second step for most people is
  111. to use higher level (more useful) programs such as word processors,
  112. accounting systems, games (or whatever). These higher level APPLICATION
  113. level programs are simply started by entering a simple word or instruction
  114. at the DOS prompt. For example, if you purchased word processing disk
  115. program it might instruct you to insert that special disk into the
  116. computer and type:      a>start
  117.  
  118. The point is that DOS is a program which itself allows other more useful
  119. programs to be loaded into the pc and operated.
  120.  
  121.  
  122.  
  123. TIME TO JUMP TO LIGHTSPEED!  . . . 
  124.  
  125. What follows is a listing of the most used DOS commands
  126. and a secondary listing of less used and more advanced commands.
  127.  
  128.  
  129.         -----------------Clip for Reference------------------
  130.  
  131.  
  132.  DOS BASIC COMMANDS, EXAMPLES AND COMMENTS FOR BEGINNERS . . . .
  133.  
  134.  
  135.  (The following listing is from PC-LEARN for beginners! For the complete
  136.  software program contact Seattle Scientific Photography POB 1506,
  137.  Mercer Island, WA 98040.  PC-LEARN is shareware, ok to copy) 
  138.  
  139.  
  140. ==DIR (Internal command) lists a table of disc file contents. Use this
  141. command to view a disk volume label, all file names, sizes of files in
  142. bytes, the date, time of file creation and amount of space left for
  143. storage on the disc. A disc for IBM PCs clones hold about 360,000
  144. bytes or computer "words." Dir/w lists colums in "wide screen mode"
  145. Dir/p lists in "pause" mode (one screen at a time). Can also find certain
  146. Files. Example: a>dir letter.bak   Example: c>dir rll.wks. You can
  147. switch and view another directory.  Example:  c>dir b: 
  148. Example  a>dir c: 
  149.  
  150. Tip---> A FILE is a collection of computer words or symbols which 
  151. function as a group to perform a task or convey information.
  152. Just like a filing cabinet with file folders contained inside, a
  153. computer floppy disk is a file cabinet contained small "folders"
  154. or groups of information.
  155.  
  156. Tip---> dissecting a directory listing:
  157.  
  158. Examine the following (partial) screen listing. The first word in each
  159. line is the file name. The second word is the file extension. (Example:
  160. the first file is actually named COMMAND.COM not command    com ). 
  161. The next number is the byte count or file size (i.e., how many 
  162. computer words or bytes make up the file). The next item is the 
  163. date of file creation. The final item is the time of file creation.
  164.  
  165. COMMAND  COM    16037   2-15-84   3:55p   
  166. ANSI     SYS     1632   6-26-84   5:15p
  167. ASSIGN   EXE     1386   5-22-84   3:42p
  168. AUTOEXEC BAT       40   3-26-87   6:32a
  169. BACKUP   COM    11855  12-11-84   1:02p
  170. CHKDSK   COM     6468  10-19-83   7:51p
  171. DEBUG    COM    12223  10-19-83   7:52p
  172. DEVCNFG  COM     4621   9-18-85   7:01p
  173. DISKCOMP COM     2088   9-12-85   4:41p
  174. DISKCOPY COM     1409  10-19-83   7:51p
  175. DISKSHIP EXE     2376   8-29-85  11:08a
  176.  
  177.                           
  178. Tip--->FILE HANDLING with dir and DOS. On the screen a dir listing might
  179. show a file as
  180.  
  181.                PC-LEARN    WKS
  182.  
  183. The true syntax to DOS is always:     PC-LEARN.WKS
  184. The point is that you need a dot between the file name (first part)
  185. and the extension of the file (second part)
  186.  
  187. Tip--->   Files can be typed in upper or lower case: DOS doesn't care!
  188.  
  189.  
  190. Tip--->FILE NAMES. There is a meaning to life, as they say. Files names
  191. have meaning. The clue as to the use of a file usually resides in its
  192. extension. Examples:
  193.  
  194.  
  195. 123.EXE                    The program 123, an "execute" file.
  196.                            Think of as a motor or engine.
  197.  
  198. 783.WKS                    A worksheet file from lotus
  199.                            possibly from July of 1983 (7/83)
  200.  
  201. README                     Probably a text file in plain 
  202.                            english
  203.  
  204. README.TXT                 Same thing, but suffix means "text"
  205.                            A text file is sometimes also called an
  206.                            ASCII file. It contains ordinary words
  207.                            you can read. Text files are generated by
  208.                            a word processor program or editor program
  209.                            are usually contain letters, notes, or
  210.                            instructions.
  211.  
  212. BBD.DAT                    Unknown file type, but we guess "data"
  213.  
  214. XVC.RXD                    Unknown file, but we guess from a reflex
  215.                            databse program (Reflex data=RXD)
  216.  
  217. GO.BAT                     A Batch file (bat). think of as
  218.                            like an exe file. A little engine
  219.                            of some sort. Contains plain english
  220.                            can be viewed with the DOS "type" command.
  221.  
  222. VIEW.COM                   Unknown file, but a "command" type,
  223.                            similar to an exe file. A little
  224.                            engine.
  225.  
  226. ANSI.SYS                   A system file, Instruction unique to
  227.                            your computer hookup and brand.
  228.  
  229. CONFIG.SYS                 Likewise a system file. Helps "configure"
  230.                            your computer for specific hookups, 
  231.                            and equipment.
  232.  
  233.  
  234. Tip--->LIES LIES! AND FILE HANDLING. DOS is quite honest for the most
  235. part. When you ask for a directory listing of files on a disc you
  236. usually get it. EXCEPT for two small lies! On the main DOS disc are
  237. two files which cannot be seen on the directory (hidden) but are
  238. there: BIO and DOSSYS. These files are are the core of the operating 
  239. system (brains) of the computer. The designers of DOS hid them for
  240. two reasons 1) copyright concerns 2) protection from accidental
  241. erasure. BUT the biggest problem is that these two special files
  242. will not copy to discs in the normal manner (see our copy discussion
  243. below). These two files can only be copied with the SYS command or
  244. DISKCOPY command (also below). Without these two files a disc
  245. cannot boot or startup the computer. When you copy a DOS disc
  246. the copy command copies ALMOST everything (except BIO and DOSSYS)
  247. The DISCKCOPY command copies everything. You only need BIO and DOSSYS
  248. to start the computer: BIO and SYS do not have to be on every disk!
  249.  
  250. Tip---> STOP! Not a formal DOS command, but if you need to stop something
  251. in progress, (copying, listing) do this: If a directory is scrolling
  252. endlessly down the screen, hit control key AND the s key held together. This
  253. stops things until you want to recontinue (hit any key). To stop a DOS
  254. operation altogether, use control key and c key together. Easy way
  255. to remember: control c means crash. control s means stop. This will
  256. not always work within every program (e.g., inside lotus) but it 
  257. does work within DOS.
  258.  
  259. Tip--->Don't get confused. Computer people call programs, applications
  260. Get it? Applications are programs, programs are applications.
  261. Hire a computer person to describe a pencil and you'd get "extensible
  262. manually driven organic writing device, non electric, replaceable."
  263.  
  264. ==COPY (internal) copies one or several files to a disk or directory. Copy
  265. can duplicate a file onto another disk or into a subdirectory (more on 
  266. subdirectories later) Example: b> copy zip.doc a:  
  267. Example: a> copy why.me b:  Copy and the + symbol combines two or more
  268. files into one larger file. Example: a> copy files.old+files.new files.all
  269. Copy can send data to the printer. Example: b>copy files.new>prn. 
  270. Copy and /v verifies a  good transfer or copy. Example: a>copy old.files b:/v
  271. Copy con ("copy from the console or keyboard) can prepare batch files
  272. and autoexec.bat files to automate many DOS operations (examples below). 
  273.                     
  274. More copy examples for review . . .    
  275.  
  276.          Example: a>copy con autoexec.bat  (press enter)
  277.                   a>123                    (press enter)
  278.                   a>^Z                     (press enter)
  279.  
  280. In the last line ^Z is produced by either pressing F6 (function key 6)
  281. or holding down control key and z key together.
  282.  
  283. This means (first line) create a file named autoexec.bat as typed from the 
  284. keyboard or con (console). (Second line) execute the program named 123.
  285. (Final line) end of my orders from the keyboard - prepare the file
  286. and stash it on the disc.
  287.  
  288.           Example: c>copy fuss+whine moan.txt
  289.  
  290. Meaning: take the disc file fuss and combine it with the file whine
  291. and rename the result moan.txt. This is useful when combining several 
  292. different word processed documents into one long letter. 
  293.  
  294. Example:   b>copy whine.bat b:/v
  295.  
  296. Means copy the disc file whine.bat to the b drive and then verify this is a 
  297. good copy. 
  298.                               
  299.  
  300. ==Date and time (internal) A calander and clock exist within DOS. On some
  301. computers it automatically is updated and kept current. On other computers
  302. (without a clock card or chip installed) you type in the date and time on
  303. startup. This date and time data is attached to all files to keep track
  304. of when they were created so you can determine which file is most recent.
  305. Example: (at the DOS prompt a>    
  306.  
  307.  
  308. ==DEL (or ERASE) (internal) deletes files or groups of files. Use DEL*.*
  309. to erase all files from a disc (more on these wild cards in a second).
  310.  
  311. Example: a>del whine.txt
  312. Example: b>del 784.wks
  313. Example: a>del *.wks
  314. Example: a>del old.*  
  315. Example: c>del ??.rxd
  316.  
  317.  
  318. == ? and * characters.   DOS can use "wildcards" in many operations (? *)
  319. like copy and del. Simply stated, these wildcards take the
  320. place of letters and numbers. Use the question mark as any
  321. SINGLE character. Use the * as any GROUP of characters. Think of
  322. them as a shorthand to get the job of typing done.
  323.  
  324. Example: a>dir a:*.wks
  325. Example: b>copy ???.*ata
  326. Example: c>del *.*
  327. Example: a>copy *.wks b:/v
  328.  
  329. ==DISKCOPY (external Note! external file: must be in diskdrive to work!)
  330. copies entire contents of one floppy to another. Some DOS versions require
  331. you to first format the blank disk first (the target disk). Example:
  332. a>diskcopy a: b: (meaning diskcopy the contents of floppy in a drive
  333. and send copy to b:)
  334.  
  335. ==FORMAT (external) Prepares a blank floppy to receive data. Think of
  336. a fresh disk as blank paper. DOS prefers graph paper with little boxes
  337. drawn on it to receive data. Each little box stores a computer word or
  338. "byte." Example b>format a:  (meaning format floppy in a: drive)
  339. Example: a>format (format the disk in a: drive). Format erases any
  340. old files on a disk (be careful!)
  341.  
  342. --->Tip Only new (empty) formatted disks can receive the system files.
  343. (Remember the BIO and SYS secret files?) Once you put a few files on
  344. the floppy the system files will not fit. The floppy must be empty
  345. and formatted. The system files "want" to be in "first place" on
  346. a floppy. 
  347.  
  348. ---------------------------------------------------------------------------
  349. Tip---> Danger! Danger! a>format c: wipes out your hard drive! 
  350. Also c> del *.*  wipes out hard drive. 
  351. ---------------------------------------------------------------------------
  352.  
  353. ==REN or rename (internal) changes name of a file to another new name.
  354. Destroys old name. Example: a>ren old.file new.file
  355.  
  356. Tip---> Use the copy command instead of rename if you want to keep the
  357. old file and its old name, but just want another copy of that file.
  358.  
  359. ==TYPE (internal)  display or "types" the contents of a file. Use type
  360. for a glimpse into files. Only text files (also known as ASCII files)
  361. will read in english. Other files (com or exe) will show gibberish since
  362. they are in computer code. Example: a>type readme.1st  Example: b>type
  363. readme.1st>prn (sends to printer).  Example: b>type readme.1st (hold
  364. down control key and s key to temporarily pause screen when full then
  365. hit any key to restart).
  366.  
  367. ==COMP and DISKCOMP (external) compare two files or disks. Used after
  368. the copy command, these commands ensure accuracy of the copy. 
  369. Example: a>comp a:this.file b:that.file
  370. Example: a>diskcomp a: b:
  371.  
  372. ==CLS (internal) clears the screen. Example: a>cls
  373.  
  374. ==SYS (external) copies the hidden files (BIO and SYS) to another disk
  375. which has been already formatted.
  376.  
  377. The command format/s first formats a floppy then adds the files.
  378.  
  379. Example: a>sys b: (used when the disk is already formatted)
  380. Example: a>format b:/s (does same thing but first formats blank disk)
  381. Example: a>format b:/s/v (verify also used.)
  382. The basic purpose of the SYS and format/s commands are to make a disk
  383. self-starting or self booting.
  384.    
  385. ==CHKDSK (external) checks contents of a disk for errors. Chkdsk/f     
  386. fixes minor errors. Chkdsk/v displays all filesnames as it works.
  387. Followed by a filename, chkdsk checks only that file. Example:
  388. a>chkdsk b:this.file/f/v
  389.  
  390. ==FDISK (external) prepares hard drive for data. First use fdisk then
  391. use format c:/s/v for second step. Some hard disks come shipped
  392. with fdisk already run and only need final formatting. Running
  393. fdisk is also known as partitioning the hard disk. Example: a>fdisk
  394.  
  395. ==LABEL (external) attaches volume label or header to a floppy. Like
  396. stamping a book with a title. Only in DOS 3.0 and above. Example:
  397. a>label b:expenses
  398.        
  399. TIP---> SUBDIRECTORIES - Little boxes in the disc drive
  400.  
  401. You could compare a hard disk to a deparment store. The store might
  402. sell toys, books and clothes.  Similar items go in the same department.
  403. Your hard disk has the capacity for many separate areas
  404. in which  to place  files.  DOS refers to these maginary "depart-
  405. ments" as directories or subdirectories. You can create a subdirectory
  406. named DATA which contains all your  word processing documents.
  407. Computer utilities could be in a subdirectory called UTIL,
  408. and so on. Subdirectories allow you to keep a well organized hard disk.
  409.  
  410. The DOS commands mkdir, rmdir, and chdir allow you to make,
  411. remove, and change directories. They are of some use on a floppy
  412. but essential use on a hard drive which may have hundreds of
  413. (hard to locate) files. They aren't essential - just useful in
  414. organizing your files.
  415.  
  416. ==MD or mkdir (internal) makes a subdirectory and assigns it a name or
  417. path name. These subdirectories essentially branch out from your
  418. main directory (also called a root directory). example: a>md\data
  419.  
  420. ==RD or rmdir (internal) removes an empty subdirectory (it cannot remove
  421. a subdirectory with files contained as a safety measure - use the
  422. del command to first clear a subdirectory). A root (main) directory
  423. cannot be removed. Example: b>rd\letters
  424.  
  425. ==CD or chdir (internal) changes the current (active) subdirectory or
  426. directory. CD\ brings you to the root (main directory) no matter where
  427. you are. Example: a>cd\  Example: c>cd\data  Example: b>cd\data\financial
  428.  
  429. ==CTRL & PRTSC (internal) isn't really a command but a combination of
  430. two keystrokes at the same time which sends all displayed data to the
  431. printer until you hit the same two keys to turn the command off.
  432. Allows you to print directory listings or files of interest. Remember
  433. to turn command off when finished.
  434.  
  435. ==SHIFT & PRTSC (internal) two key combination which copies only the
  436. current screen to your printer.
  437.  
  438.                                                                
  439. -------------------------------------------------------------------------
  440.  USING DOS THE EASIER WAY - DOS SHELLS AREN'T FOUND AT THE SEASHORE
  441. -------------------------------------------------------------------------
  442.  
  443. There is always an easier way to do anything - given enough time, money
  444. and ingenuity. If DOS commands and structure are not interesting
  445. or you don't have the time to practice, there exist programs called
  446. DOS SHELLS which essentially provide DOS access for routine things
  447. like moving and copying files; these shell programs hide the 
  448. DOS commands behind a menu of "point and select" choices
  449. and options. The typical DOS shell is a package which surrounds
  450. DOS (like a shell, hence the name) and allows you to perform the most
  451. common functions by pressing only one or two keys or moving a 
  452. highlighted arrow.
  453.  
  454. This is a bit like using a cash machine at the bank. If you need to take 
  455. money out of the machine, you insert your card, key in a password and press
  456. a few different choice buttons. DOS SHELLS provide a screen of DOS
  457. command choices, and all you do is point the arrow or cursor and what
  458. you want done. You see a menu of choices instead of a cryptic a>.
  459.  
  460. The tradeoff is that you may miss out some of the more subtle
  461. operations that direct contact with DOS can provide, but then sometimes 
  462. it is easier to simply get the task accomplished.  
  463.   
  464. There are two flavors of DOS shells: memory resident (stay put in the
  465. computer memory) - which are always available whether the
  466. DOS shell disc is in the machine or not. The second type, non-resident 
  467. shells live on the disc and must be present in the disc drive to be used. Non
  468. resident DOS shells do not however use active RAM memory continuously
  469. and thus free more memory space for your main program.
  470.  
  471. DOS shells can also have added features: security passwords and macros
  472. (the capability to cause one key or key combination to instantly 
  473. type a long string of characters.) 
  474.  
  475. DOS shells are a good "beginners crutch" to let you work with the
  476. computer and its DOS operating system without having to learn the DOS
  477. commands and their somewhat arcane syntax. 
  478.  
  479. Some common and reasonably good DOS shell packages for beginners include:
  480. HOT, Still River Shell, DOS2ools, Direc-Tree Plus, and Alps Hip pocket
  481. Helpers. Another file management shell is Q-Filer. 
  482.  
  483. Powermenu and Automenu are shells with the capability to help you add
  484. custom and simple menu screens which allow you to start and select between
  485. different computer programs quickly and (again without having to use
  486. DOS commands directly.)       
  487.  
  488.  
  489. end of DOS part 1, now press escape key to return to menu
  490.  
  491.