home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / BASIC / FRIENDLY.ZIP / HINTS.001 < prev    next >
Encoding:
Text File  |  1988-10-13  |  5.7 KB  |  51 lines

  1. 10 ON ERROR GOTO 470:ON KEY(10) GOSUB 390:DEFSTR Z:SCREEN 0,0,0:WIDTH 80:XLIN=1:XPOS=1
  2. 20 GOSUB 500:COLOR 15,0:LOCATE 3,31:PRINT"HELPFUL DOS COMMANDS":COLOR 3,0
  3. 30 LOCATE 5,20:PRINT"Before proceeding  with specific commands,":LOCATE 6,20:PRINT"it will be  helpful for you to understand":LOCATE 7,20:PRINT"a few terms and concepts.":LOCATE 9,20:PRINT"FRAGMENTATION  is a term used to describe
  4. 40 LOCATE 10,20:PRINT"a file that is `broken up' and resides on":LOCATE 11,20:PRINT"different parts of a diskette rather than":LOCATE 12,20:PRINT"intact in one place as it should be.":LOCATE 14,20:PRINT"There are TWO types of commands, INTERNAL
  5. 50 LOCATE 15,20:PRINT"and EXTERNAL. Internal commands are built":LOCATE 16,20:PRINT"into the command processor;  and external":LOCATE 17,20:PRINT"commands reside on the  DOS  diskette.":LOCATE 19,20:PRINT"All of the commands on the next 2 screens
  6. 60 LOCATE 20,20:PRINT"(except `COPY') are external commands, so":LOCATE 21,20:PRINT"THEY ALL REQUIRE USE OF THE DOS DISKETTE!":GOSUB 340:IF BACKFLAG THEN 330
  7. 70 GOSUB 500:COLOR 15,0:LOCATE 3,31:PRINT"HELPFUL DOS COMMANDS":COLOR 3,0
  8. 80 LOCATE 5,8:PRINT"A>FORMAT B:/S":LOCATE 5,24:PRINT"You must put  DOS  onto all new diskettes that":LOCATE 6,24:PRINT"you want to use with your disk driven PC. With":LOCATE 7,24:PRINT"third party software, you must  FORMAT a blank
  9. 90 LOCATE 8,24:PRINT"diskette BEFORE you can copy anything onto it.":LOCATE 10,24:PRINT"To FORMAT a new diskette, first insert the DOS":LOCATE 11,24:PRINT"diskette. Type FORMAT B:/S and press ENTER key.
  10. 100 LOCATE 13,24:PRINT"By using Format B:/S you will FORMAT and trans-":LOCATE 14,24:PRINT"fer the three system files to the new diskette.
  11. 110 LOCATE 16,8:PRINT"A>CHKDSK B:":LOCATE 16,24:PRINT"This command will tell you:  1) how many total":LOCATE 17,24:PRINT"bytes of storage are on the diskette,   2) how":LOCATE 18,24:PRINT"many  bytes  of  storage that remain available,
  12. 120 LOCATE 19,24:PRINT"3) the number of files,   4) total bytes of PC":LOCATE 20,24:PRINT"memory, and 5) bytes of memory still available.":GOSUB 340:IF BACKFLAG THEN 20
  13. 130 GOSUB 500:COLOR 15,0:LOCATE 3,31:PRINT"HELPFUL DOS COMMANDS":COLOR 3,0
  14. 140 LOCATE 5,7:PRINT"A>DISKCOPY A: B:":LOCATE 5,24:PRINT"This command will produce a `carbon  copy' of the":LOCATE 6,24:PRINT"diskette in drive  A  to the diskette in drive  B.
  15. 150 LOCATE 8,7:PRINT"A>DISKCOMP A: B:":LOCATE 8,24:PRINT"This should be used after a diskcopy command.  It":LOCATE 9,24:PRINT"will verify that the orginal was copied correctly.
  16. 160 LOCATE 11,7:PRINT"A>COPY A:*.* B:":LOCATE 11,24:PRINT"This command is slower than the  diskcopy command,":LOCATE 12,9:PRINT" (Internal)    but is useful because it copies all files  sequen-
  17. 170 LOCATE 13,24:PRINT"tially and re-groups any  FRAGMENTED  files. This":LOCATE 14,24:PRINT"command can also be used to copy a single file by":LOCATE 15,24:PRINT"file name.  Please refer to your  DOS  manual.
  18. 180 LOCATE 17,7:PRINT"A>COMP A:*.* B:":LOCATE 17,24:PRINT"Compares the copied diskette to the original on a":LOCATE 18,24:PRINT"file by file (ie: name by name) basis.":GOSUB 340:IF BACKFLAG THEN 70
  19. 190 GOSUB 500:COLOR 15,0:LOCATE 3,31:PRINT"HELPFUL DOS COMMANDS":COLOR 3,0
  20. 200 LOCATE 5,8:PRINT"A>DATE          This command will set the date for new":LOCATE 6,24:PRINT"files and will appear in the directory.
  21. 210 LOCATE 8,8:PRINT"A>MODE[]:[],[]  This command will set the mode for the":LOCATE 9,24:PRINT"printer or monitor.
  22. 220 LOCATE 11,8:PRINT"A>SYS B:        Transfers the three  DOS  system files.
  23. 230 LOCATE 13,8:PRINT"A>TIME          This command will allow you to set the":LOCATE 14,24:PRINT"Hours and Minutes used as the starting":LOCATE 15,24:PRINT"point on the internal clock.
  24. 240 LOCATE 18,24:PRINT"The MODE and SYS commands are EXTERNAL.":LOCATE 19,24:PRINT"They require the use of a DOS diskette.":GOSUB 340:IF BACKFLAG THEN 130
  25. 250 GOSUB 500:COLOR 15,0:LOCATE 3,31:PRINT"HELPFUL DOS COMMANDS":COLOR 3,0
  26. 260 LOCATE 5,8:PRINT"(batch)         Executes a `batch' of  files or a series of":LOCATE 6,24:PRINT"commands  without  re-entering each command.":LOCATE 7,24:PRINT"This will be done automatically and sequen-
  27. 270 LOCATE 8,24:PRINT"tially for all files with `.BAT' extensions.
  28. 280 LOCATE 10,8:PRINT"A>DIR           Lists all filenames,  the type of  file and":LOCATE 11,24:PRINT"its extension (ie: .com, .bas, .exe, .bat),":LOCATE 12,24:PRINT"the size of the file in bytes, and also the
  29. 290 LOCATE 13,24:PRINT"date that the file was created.
  30. 300 LOCATE 15,8:PRINT"A>ERASE         Deletes a file from diskette.  You must use":LOCATE 16,24:PRINT"the complete filename and its extension.
  31. 310 LOCATE 18,8:PRINT"A>TYPE          Displays file contents.
  32. 320 LOCATE 20,24:PRINT"These are  INTERNAL  commands.  They DO NOT":LOCATE 21,24:PRINT"require the use of your  DOS  diskette.":GOSUB 340:IF BACKFLAG THEN 190
  33. 330 CHAIN"MENU1.001",5000
  34. 340 BACKFLAG=0:LOCATE 24,12:COLOR 15,0:PRINT"Strike Any Key To Continue   Strike <F1> For Previous Page";:COLOR 3,0
  35. 350 DEF SEG:POKE 106,0:IF INKEY$<>"" THEN 350
  36. 360 Z=INKEY$:IF Z="" THEN 360
  37. 370 IF LEN(Z)>1 THEN IF RIGHT$(Z,1)=";" THEN BACKFLAG=1
  38. 380 RETURN
  39. 390 KEY(10) OFF:XLIN=CSRLIN:XPOS=POS(0):LOCATE 25,1:PRINT SPC(79);
  40. 400 LOCATE 25,21:COLOR 15,0:PRINT"Do You Wish To Leave This Program? <Y/N>";:COLOR 3,0
  41. 410 Z=INKEY$:IF Z="" THEN 410
  42. 420 IF Z="y" OR Z="Y" THEN 330
  43. 430 IF Z<>"n" AND Z<>"N" THEN 410
  44. 440 LOCATE 25,1:PRINT SPC(79);:LOCATE 25,23:COLOR 0,7
  45. 450 PRINT" Strike <F10> To Leave This Program ";:COLOR 3,0:LOCATE XLIN,XPOS,0
  46. 460 KEY(10) ON:RETURN
  47. 470 ON ERROR GOTO 480:RUN"MENU1.001"
  48. 480 ON ERROR GOTO 490:RUN"MENU2.002"
  49. 490 RUN"MENU3.003"
  50. 500 CLS:GOSUB 440:LOCATE 1,1:PRINT"╔"STRING$(78,"═")"╗":FOR A=2 TO 22:LOCATE A,1:PRINT"║":LOCATE A,80:PRINT"║";:NEXT:LOCATE 23,1:PRINT"╚"STRING$(78,"═")"╝";:RETURN
  51.