/build/static/layout/Breadcrumb_cap_w.png

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=&#40553

The script should not write the new variable again and again after running the vb script.

0 Comments   [ + ] Show comments

Answers (4)

Posted by: anonymous_9363 15 years ago
Red Belt
0
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
Senior Yellow Belt
0
Hi Buddy,

Thanks for your suggestions. However I am really bad at scripting. Can you please if possible give me the code to implement this case.

Thank you.
Posted by: captain_planet 15 years ago
Black Belt
0
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
Red Belt
0
Can you please if possible give me the code to implement this case.Sure. Send me a specification and I'll send you a quotation for my services.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ