DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Editing PATH

By: rekha singh | 11 Jun 2010 6:33 pm
I have been asked to find a way to script the editing of the PATH variable on XP and 2003 to help clean up from previous installation (or uninstallations) that have not removed themselves from the path.
I found articles on how to read and write to the registry for the PATH variable, but nothing on how to weed out a string from the path. For example:
path=c:\oracle;c:\oracle\product;c:\oracle\product\home_1;c:\windows;c:\windows\system32
 
If I wanted to delete all the c:\oracle stuff from above, is this possible with variable-length PATH entries?
 
Pointers welcome (need to learn more about VBScript anyway hehe) and direct help would be appreciated (again to learn more)
 
Thanks!
 

Comments

No Comments Posted for this Article.

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move