Hacker News new | past | comments | ask | show | jobs | submit login

Here's the regkey that controls this setting: http://technet.microsoft.com/en-us/library/cc978570.aspx

Should be fairly easy to script deploying that to all your machines.




Long, long ago, I wanted a way to launch arbitrary numbers of CMD.EXE windows with arbitrarily-chosen foreground and background colors. The standard settings only let you store a finite number of color entries (something like 16) to choose from. However, the registry key it finds the settings in is based on the executable name, so if you make a copy of cmd.exe called cmdb.exe and run it, you have N more slots of colors to choose from. So I wrote a little hack that took --fgcolor rrggbb --bgcolor rrggbb values and then made a hard link to cmd.exe in the temp directory called something like cmd_rrggbb_rrggbb.exe, set up the appropriate registry keys, and then invoked it with whatever other args you provided. Subsequent invocations with the same args would find the temp executable and reuse it. It was an absurd hack, but it worked really well and it amused me to write it. edit: and is a testament to how idiotic the CMD settings scheme is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: