I use this to set the path, but when i am run this batch more than one time same path will set for several times, i want to put a restriction like if a particular path is not set before then set this path. How to do this, Please give some idea .
path="C:\Program Files\Java\jdk1.7.0_21\bin";%path%