Batch in vista \ can't find the problem

Hi, and thank you for reading that.<br />I wrote a small app to "change ip" on my computer in batch.<br />I have 3 dial-up connections, and each one should give another ip every time I disconnect and connect, but it doesn't happen so recently, so I had to do something.<br />I wrote this app: <br />*It works perfectly on XP! for 100%<br /><br /><a href="http://utilitybase.com/paste/6200" target="_blank">http://utilitybase.com/paste/6200</a><br /><br />*this slash: / should be: \<br />but I don't know whats wrong with the site I uploaded it to.<br /><br /><br />As you can see in lines 37-39,<br /><br />:files_are_the_same<br />cd "C:/Program Files/program"<br />0142.bat<br /><br /><br />If the IP hasn't been changed, it goes to the next dial-up connection named as [0142.bat and 0143.bat].<br /><br />[0142 and 0143 are has the same content as the app you saw, but it connects just to another connection]<br /><br /><br />The problem in Vista is that it does only the first "loop" - it doesn't go to the next file [connection...].<br />For example, even if the IP wasn't changed it stops in 0141 and doesn't go on to 0142 and etc.<br /><br />Why is that? Why it doesn't read the IF's? How to fix that?<br /><br />Thank you a lot again!!<br />sorry for my English, if it's not so correct. If you didn't understand something please write it, and Ill to to rephrase it.<br />
</div>
 
Top