Skip to content
Archive of posts tagged batch file

Fun with ANSI.SYS

Ever thought of making the CMD shell more colourful.. Lets have some fun. Open the C:\Windows\System32\config.NT Remove "REM" before the "DOSONLY" line add the below line towards the end of the file. device=%SystemRoot%\system32\ansi.sys Save the file. Open up a cmd shell Type command at the prompt ( Note: its command, NOT cmd) Type the following command at the prompt C:\Windows>prompt $e[5;3143m    [...]

My Experiments with CMD – The FOR Command

I am really an admirer of "FOR" command. The possibilities with For command are end less To generate a simple ping sweeper   Imagine you have to monitor 10 systems for its availability through "ping" command. Say the systems are in the IP range 10.0.0.1 to 10.0.0.10 C:\> For %i in (1,2,3,4,5,6,7,8,9,10) do ping 10.0.0.%i It starts pinging [...]