|The autoexec.bat file in Windows 7, and the entire NT line for that matter, does very little. In most cases nothing at all. In XP it was scanned to see if it contained any environment variables but I don't know if that is the case in Windows 7.|
The primary purpose of autoexec.bat in Windows 7, when it exists, is to keep old DOS programs happy that would fail if it does not exist.
I believe that the autoexec.nt file in the windows\system folder will do what you want.
Of course that depends on what you are trying to do.
Do be aware that command line programs and DOS programs are NOT one and the same.