windowsautoexec

Windows 7 and autoexec.bat


I am not sure whether autoexec.bat is supported under Windows 7. I need to run some commands at startup but before any user logon.


Solution

  • There is no way to run a script directly, but you can easily make it run as a service using for example srvany.exe (short for "serve any"). Details can be found here: Best srvany.exe for Windows XP and Windows 7?

    Alternatively, using the Windows Task Scheduler should be able to do the trick as well: http://www.sevenforums.com/tutorials/67503-task-create-run-program-startup-log.html