mahadeo's bits

Online blog about offline stuff

Performance tips: Use subst

If you’re on Windows machine, how many physical drives do you have? I only have 2 (C: and D:) which I consider more than enough.

However, there are some locations on the disk that I need to access very often. It’s a good idea to create a shortcut for them. This can be achieved by using logical (mapped) drives.

Example:

You have a directory D:\work\projects and you need an easy access to it. OK then just run this command:

subst P: D:\work\projects

and — Bingo! — you have a new drive, P: for your projects which you can access in the same way you do with “normal” C: and D: drives.

Stay tuned to figure out how to add these logical drives creation to autostart.