In Linux we have .barshrc file where we can mention what commands to run whenever we open a terminal. This saves a lot of time to set some repetitive tasks which we do everytime we open a terminal.Sadly, there is no such file in Windows to get the work done.
But it is very easy to achieve the same effect. Follow these steps:
- Create a batch (file name that ends in .bat extension) file in some location, lets say, C:\autorun.bat
- The batch file contains all the commands you want to execute on launching Command Prompt
- Open Run dialog by pressing “windows key + r”
- Type regedit and press enter
- Registry Editor opens and we need to a new entry into it. Check the snippet below Continue reading