Windows

subst

SafeMap a path to a drive

subst X: <path>

Assigns a folder to a drive letter — dodge MAX_PATH limits and pin tool paths.

Examples

  • subst P: C:\projects\very\deep\treeShortcut a deep tree as P:

Syntax

subst [drive: path] [drive: /d]

Before you run it

Mapping only; clears on reboot.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store