You are right about windows not closing the drive automatically, for some reason I thought that was a built in feature. But I know that this works because I have done it before. Problem is, it was a long time ago when I was building an HTPC and never finished it, didn't write the batch file myself, and can't remember how we got it to work. My Dad wrote the file to work in command prompt before windows ran, and we tested it, it worked. Now if I could just prove it...Also, for the "autoexec.bat" file thing, some stuff you need to know :
Windows XP doesn't use the autoexec.bat file, it doesn't even read it, so it's useless. The drive closes itself in the BIOS to detect any disk in it. And, as far as I know, Windows doesn'T close drives when shutting down.