Windows 7 and Windows 8 God Mode

Create a new folder on the desktop, and give it this name:


It will give you a neat little console with all the admin stuff in one spot.

Reported to work on Vista, but I have not tested that.

Using DATE and TIME variables in CMD files without the illegal file name charectars

Ran into this little tidbit that I’d like to remember later while writing a script that does simple MySQL backups. You can use variables in this format to record date and time but leave out the illegal file name charectars.

cd "MySQL Backups"
mysqldump --database xmlfilegen --user=xmlfilegen --password=####### --result-file="%DATE:~10,4%%DATE:~4,2%%DATE:~7,2% %TIME:~0,2% %TIME:~3,2%%.txt"