The goal here is to remove duplicate entries from the PATH variable. But before I begin, let's be clear: there's no compelling reason to to do this. The shell will, in essence, ignore duplicates PATH ...
Windows usually even respects PATH settings in autoexec.bat, although that may change or perhaps already has in XP, I don't know.<BR><BR>OTOH, Linux has multiple shells, which each read different ...