david_leslie

Tip of the Week: How to list the DOS %PATH% variable in a readable format

Blog Post created by david_leslie on Jun 16, 2013

I have always found the Windows %PATH% variable difficult to read.  There are normally multiple lines and the ";" separator is difficult to see.

 

It turns out I am not alone; yesterday a colleague sent me the following command to report the contents of that variable (or any other) from a DOS window in a simple to read format.

 

     echo %PATH:;=&echo.%

 

I predict this command will be appearing on a post-it-note near your screen very soon!

Outcomes