I have scripted FinPNX.bat to report any folders in your %PATH% that do NOT exist.
The syntax for using FinPNX.bat is:
FinPNX
FinPNX.bat contains:
@echo off setlocal ENABLEDELAYEDEXPANSION for %%f in ("%PATH:;=";"%") do if not exist %%f set NE=!NE!;%%f if defined NE ( call :list ) ELSE ( @echo OK ) endlocal goto :EOF :list for %%f in (%NE:;= %) do @echo %%fNOTE: See these other PATH related tips:
What command will return the folders in my PATH, one per line?
How can I test if a folder is in my PATH?
How do I check for duplicate path entries on all my Windows NT 4.0+ clients?
How can I tell if a file is located in my PATH, or other set of folders?
How do I add a folder to the Windows 2000 / Windows XP PATH, in a batch?
FixPath freeware checks for the minimum required directories in your path.
0 comments
Hide comments