Command Prompt Tips
Welcome, Guest. Please login or register. Did you miss your activation email?


Pages: [1]
  Print  
Author Topic: Command Prompt Tips  (Read 1336 times)
MrTicker
Sr. Member
****
Posts: 343



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: 3496



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

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



Ben
Newbie
*
Posts: 24



View Profile
« Reply #2 on: May 13, 2011, 10:31:47 AM »

A good post - I thought I'd share an easier way to change colours - at the command line itself enter 'color' (must be the American spelling) followed by the color code. To view the code, type you guessed it 'color /?'

see the pictures below:



Uploaded with ImageShack.us

Moving on to:



Uploaded with ImageShack.us

If you want to hurt your eyes, use the code 2c!!

I hope you deem this a worthy contribution Smiley

P.S I for some reason cannot markup images in my posts - perhaps it's due to my phenomenal post count, and that there is a chance that I may be a bot (I'm not!!)
« Last Edit: May 13, 2011, 04:24:57 PM by Britec » Logged

Windows 9x/NT 6.1


Britec
Administrator
Hero Member
*****
Posts: 3496



View Profile
« Reply #3 on: May 13, 2011, 04:26:20 PM »

Nice post ben, if you want to post tutorials let me know.
Logged



Ben
Newbie
*
Posts: 24



View Profile
« Reply #4 on: May 14, 2011, 05:45:52 AM »

Nice post ben, if you want to post tutorials let me know.

Please mate if thats ok
Logged

Windows 9x/NT 6.1


Britec
Administrator
Hero Member
*****
Posts: 3496



View Profile
« Reply #5 on: May 14, 2011, 05:59:59 AM »

Sure Ben I will sort it out later today, dont foget if you want to chat on ventrilo let em know
Logged



tmy
Hero Member
*****
Posts: 673



View Profile WWW
« Reply #6 on: May 14, 2011, 07:01:42 AM »

 Azn Ben / MrTicker,
nice posts this is just what the forum needs thank you guys excellent work   


 You Rock

Take care keep up the good work !                   Wink


tmy


 Bye
Logged

www.stannic.com.au  Home Computing Services And Repairs
Pages: [1]
  Print  
 
Jump to: