Windows 7 and Windows 8 God Mode

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

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

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.

D:
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"
exit