Hackerman's Hacking Tutorials

The knowledge of anything, since all things have causes, is not acquired or complete unless it is known by its causes. - Avicenna

Nov 27, 2017 - 1 minute read - Comments - Windows

cmd Startup Commands

This blog talks about how to run a command automatically every time you open a new command prompt on Windows.

  1. Open registry.
  2. Navigate to the following location:
    • HKCU\Software\Microsoft\Command Processor
  3. Double click Autorun and type in your command. For example:
    • cd /d C:\Users\IEUser\Desktop\Whatever\
  4. If the Autorun property is missing, create one with type REG_SZ.
  5. 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.