Thursday, 15 November 2012

Directory Listing Order

When in DOS if you type dir you get a directory listing in the order the machine finds the entries. I preferred them ordered.
So when on a new machine I use the following.
setx dircmd "/OG /ON"
This puts all the directories first and lists everything in alphabetical order. Again like the last blog you might need to log out and log back in to see if it is working.

P.S. to see the results straight away use

set dircmd=/OG /ON

Wednesday, 14 November 2012

Setting a command prompt on Server Core

Ok so have a nice new instillation of server core, First shock there is no GUI, but it is server core so what did you expect!

This now old school server administration, but I find that the prompt that they give you is a bit lame and does not really help you very much. So the first thing I do is run the following.

setx prompt "[%computername%]$_$d$s$t$_$p$_$g"

But after doing this you see not change!

You have to log out and then back in again to see the result. Now your command prompt has changed from

C:\users\Administrator.domain>_

to

[SERVER]
14/11/2012 10:59:38.74
C:\Users\Administrator.domain
>_

Far more useful.

P.S. to see the results straight away use

set prompt=[%computername%]$_$d$s$t$_$p$_$g