Share via


Working with CMD and Long Path Names

I like using the command prompt for a lot of things and working with long (or very long) path names is something that is common these days.

Fortunately, you can customize cmd by using "prompt". Do a “prompt /?” in a command window to see all the options.

I like it simple and I use: “PROMPT=$p$_$+$g”. This gives:

C:\Windows\System32\Msdtc\Trace

>

To persist it, set it as an environment variable.