Home Help Search Login Register
Pages: [1]
  Print  
Author Topic: Command Prompt Tips  (Read 162 times)
MrTicker
Moderator
Sr. Member
*****
Posts: 319



View Profile
« on: April 15, 2010, 12:43:47 PM »

Hi All,

Are you tired of the boring, little black command prompt window? This default size is particularly irksome when there is a lot of output when you run some

commands or batch files.




Then why not change its colour,font, size and position to make it easier to work with?





There are two ways in which you can use it:

(1) Make changes for the current session only or

(2) Make the changes permanent whenever you use the Command Prompt.

To begin, open C.P. as normal e.g. Start>Run>Type CMD in the box>OK

Next, click the icon in top left corner,select Properties to make changes for this session only,or click Default to make your changes permanent(both screens are

the same, only the title is different).



From the four available tabs, select your choices.

Hints:   (1)   Running batch files or other programs cause the text to scroll off the top of the screen. Increasing the Buffer size enables you to scroll back so

                        you can check   program flow and error messages.
   
           (2)   If after running a program or batch file from a shortcut,search window or Start>Run dialog, by Default the command window will close.
                        To prevent the command window closing do this:

      a) Create a shortcut to the program or batch file
      b) Right click it>Properties
      c) select the Program tab
      d) Uncheck the 'Close on exit' box.
   
      The window will now stay open and you must close it manually.

(3)    If you have the Autocheck option ticked, pressing the TAB key will automatically complete a partial filename typed on the command line.                       

(4)   If you type a command that does not execute, maybe because you got the syntax or spelling wrong, pressing the up arrow will bring it  back where you can edit it.

(5)   If more text is generated than can fit on the screen, scrolling allows you to see it. You can increase the amount of stored text by editing the

        shortcut properties.Select the Layout tab and increase the ScreenBufferSizeHeight value or you can run the program from a batch file to

        send its output through the more command by adding |more to the end of the  command line. This will display one screen at a time, and pressing Enter displays the next screen.  

Cheers,

ticker
« Last Edit: June 01, 2010, 04:15:04 AM by MrTicker » Logged


Britec
Administrator
Hero Member
*****
Posts: 1781



View Profile
« Reply #1 on: April 15, 2010, 02:11:12 PM »

Nice one Ticker, let me know if you want moderator status
Logged




Pages: [1]
  Print  
 
Jump to: