Appending Environment variable
Hi,
Can anyone please help me in appending PATH variable.
I have one script however when I ran this script more than twice it adds the entry again.
http://itninja.com/question/gnu,-freeware-and-shareware-programs-to-cloning0553&mpage=1&key=鹩
The script should not write the new variable again and again after running the vb script.
Can anyone please help me in appending PATH variable.
I have one script however when I ran this script more than twice it adds the entry again.
http://itninja.com/question/gnu,-freeware-and-shareware-programs-to-cloning0553&mpage=1&key=鹩
The script should not write the new variable again and again after running the vb script.
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
when I ran this script more than twice it adds the entry again....exactly as I said it would in my response to the post. You need to add code that checks for the new addition's presence in the path. You would use the InStr function to do that. Remember your code should a) ignore case and b) check for the presence of the 8.3 format of the new addition, as well as the long filename format.
Posted by:
neel.login
15 years ago
Posted by:
captain_planet
15 years ago
Neel, I've been refreshing this page waiting for VBScab to go mental. He doesn't provide a coding service.....just little hints so you can go off and do some research. The two functions you need to google are 'InStr' and 'LCase'. VBScripting honestly isn't difficult to implement if you take a few hours to look into it. Skip going out for those beers tonight, stay in, crack open a beer from the fridge and get Googling.....[;)]
Posted by:
anonymous_9363
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.