G
G
Gtectonic2016-11-03 21:52:42
Command line
Gtectonic, 2016-11-03 21:52:42

How to create an abbreviation for a folder on the command line?

Hello, I have a question: If you set a folder with a program in the PATH variable of the system, then the program can be launched from the command line without specifying an absolute address. Is it possible to make such a trick for a folder, for example, or for other commands? To write cd WebProject instead of cd C:\Users\Seva\Documents\WebProject. Win7 system.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
John Smith, 2016-11-04
@ClearAirTurbulence

And if you use SUBST, it will be even shorter.
For example, give the folder C:\Users\Seva\Documents\WebProject the drive name W:
For WIN, there are GUIs that allow you to conveniently prescribe such substitutions at system startup.
For example, VisualSubst

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question