home *** CD-ROM | disk | FTP | other *** search
/ Cheet Sheets 1996 October / CHEET44.ZIP / 1OPTIP.TXT < prev    next >
Text File  |  1995-10-07  |  4KB  |  123 lines

  1. ~Today's Top DOS Tip
  2.  
  3.  
  4. A selection of quickies  -  By Simon Burrows
  5.  
  6.  
  7. `This month  I am  going to  concentrate on  five quick tips which
  8. `some of  you will undoubtedly know, but which will certainly come
  9. `in handy for a good many of you out there.
  10.  
  11.  
  12.  
  13.  
  14. ~`Tip 1  -  Clearing the screen
  15. ~`─────────────────────────────
  16.  
  17.  
  18. `By typing 'CLS' at an MS-DOS prompt you will completely clear the
  19. `contents of  the screen and be left with a fresh prompt.  Whether
  20. `used to  just clear  a messy  screen so  you can  think  straight
  21. `again, or  to get  something off the screen you'd rather somebody
  22. `didn't see, this can be very useful at times.
  23.  
  24.  
  25.  
  26.  
  27. ~`Tip 2  -  Renaming things
  28. ~`─────────────────────────
  29.  
  30.  
  31. `I'm sure that most of you will know that the MS-DOS command 'REN'
  32. `is used  to  rename  files.  Problem  is,  this  won't  work  for
  33. `directories.   If you  want to  rename these  you have to use the
  34. `'MOVE' command.
  35. `
  36. `Below is  the syntax  used  to  rename  the  file  FILE01.TXT  to
  37. `FILE02.TXT, then  that to  rename a  directory called  CHEET44 to
  38. `MAG44 :-
  39. `
  40. `     File rename  -  REN FILE01.TXT FILE02.TXT
  41. `
  42. `Directory rename  -  MOVE CHEET44 MAG44
  43.  
  44.  
  45.  
  46.  
  47. ~`Tip 3  -  Hiding things
  48. ~`───────────────────────
  49.  
  50.  
  51. `One of  the attributes  a file  can have  is 'hidden'. This means
  52. `that whenever  you do  a directory  listing  (or other listing in
  53. `most circumstances)   that file will not come up  (not be shown).
  54. `This is useful if you have personal files which, although not top
  55. `secret  (as hidden files can be easily got at if you know they're
  56. `there)   you'd rather  not have others looking them.  You use the
  57. `'ATTRIB' command to change the attributes of files.
  58. `
  59. `Below is the syntax used to hide, and then disclose, a file named
  60. `MINE!.TXT :-
  61.  
  62. `         TO HIDE  -  ATTRIB +h MINE!.TXT
  63.      
  64. `     TO DISCLOSE  -  ATTRIB -h MINE!.TXT
  65.  
  66.  
  67.  
  68.  
  69. ~`Tip 4  -  Two commands in one
  70. ~`─────────────────────────────
  71.  
  72.  
  73. `Once you  get used to it, being able to execute two commands from
  74. `the same  DOS prompt,  one after  the other,  can be a great time
  75. `saver.  To do it simply type both commands at the same DOS prompt
  76. `with a  pipe character  ('|') in between.  For example, to create
  77. `(using the 'MD command), and then enter (using the 'CD' command),
  78. `a directory called 'CHEET44', use the following syntax :-
  79.  
  80. `
  81. `MD CHEET44|CD CHEET44
  82.  
  83. `
  84. `WARNING:  If the commands you wish to run together would normally
  85. `          write some  text to the screen  (like 'MEM'),  you must
  86. `          run them  separately because  when you run two commands
  87. `          together, anything  that would  normally be  written to
  88. `          screen after the first one is complete will be ignored.
  89.  
  90.  
  91.  
  92.  
  93. ~`Tip 5  -  Changing the NUMLOCK key's status
  94. ~`───────────────────────────────────────────
  95.  
  96.  
  97. `If you've  read my  article on AUTOEXEC.BAT, you'll know that the
  98. `'NUMLOCK' command  can be used to turn off NUMLOCK which, on most
  99. `PC's, is  set to on when your computer boots up.  Its best to use
  100. `this command  in  association  with  your  AUTOEXEC.BAT  so  it's
  101. `carried out  automatically,  otherwise  you'll  spend  more  time
  102. `typing it  in at  the DOS  prompt than it would take to press the
  103. `button that does the same job on your keyboard.
  104. `
  105. `To have  the NUMLOCK  turned off automatically, add the following
  106. `line to your AUTOEXEC.BAT :-
  107. `
  108. `NUMLOCK=OFF
  109.  
  110.  
  111.  
  112.  
  113. `                            ═════════════
  114. ~`By                          Simon Burrows
  115. `                            ═════════════
  116.  
  117.  
  118.  
  119. `─────────────────────────────────────────────────────────────────
  120. ~`    THIS DOCUMENT: COPYRIGHT (c) 1995 EUROWAVE LEISURE Ltd.
  121. ~`                    COURTESY OF SIMON BURROWS
  122. `─────────────────────────────────────────────────────────────────
  123.