Forrest logo
back to the subst tool

subst:tldr:d8e17

subst: Add an association.
$ subst ${Z:} ${C:\Python2-7}
try on your machine

The command subst ${Z:} ${C:\Python2-7} is using the subst command in the Windows command prompt to create a virtual drive letter (Z:) that points to the directory on the local disk (C:\Python2-7).

Here is a breakdown of the command:

  • subst: This is a command in Windows used to create, remove, or manage virtual drives.
  • ${Z:}: This is a placeholder representing the desired drive letter to be assigned. In this case, it is specifying the letter Z.
  • ${C:\Python2-7}: This is a placeholder representing the path to the directory that will be assigned to the virtual drive. In this case, it is set to C:\Python2-7, which is a path to a directory named Python2-7 located on the C: drive.

When this command is executed, a virtual drive Z: will be created, and whenever you access Z:\ in Windows Explorer or any other file management utility, it will point to the C:\Python2-7 directory.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the subst tool