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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 03/13/2009 by: VBScab
Red Belt

Please log in to comment
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.
Answered 03/13/2009 by: neel.login
Senior Yellow Belt

Please log in to comment
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.....[;)]
Answered 03/13/2009 by: captain_planet
Second Degree Brown Belt

Please log in to comment
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.
Answered 03/13/2009 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity