Batchography: Autorun a Batch file script each time you open the command prompt

This is yet another short article from the many topics mentioned in the Batchography book. In this article, I am going to show you how to have a Batch file of your choice execute each time you open the command prompt.

Putting it simply, all you have to do is create a string registry value called AutoRun under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command then specify the path of the Batch script you want to run!

A useful AutoRun Batch script is a script that sets up command macros using the Doskey command, but that’s a topic for another time!
flower separator
Buy from Amazon:

  • Printed book:btn-buy-on-amazon
  • Kindle edition: btn-buy-on-amazon

flower separator
You might also like:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.