This blog talks about how to run a command automatically every time you open a new command prompt on Windows.
- Open registry.
- Navigate to the following location:
HKCU\Software\Microsoft\Command Processor
- Double click
Autorun
and type in your command. For example:cd /d C:\Users\IEUser\Desktop\Whatever\
- If the
Autorun
property is missing, create one with typeREG_SZ
. - Now every cmd will automatically cd to the
Whatever
directory.
I am going to keep blogging consistently (hopefully). This means breaking my habit of having to write extensive blog posts.