Question : Need help with a batch loop

I need help with a loop in a batch file. I have the question posted here:

http://www.experts-exchange.com/Networking/Wireless/Q_23935998.html

I need to search for a file on a networked mapped drive.
If it exists, run a program
If it doesn't exist, loop back, wait about 10 seconds or so
And do the search over.

Please see the question above & post your answer to that question so I can award the points from that question.

Answer : Need help with a batch loop



@echo off
net use g: /delete
:loop
net use g:  \\192.168.1.102\c\softdent /persistent:yes
if not exist g:\yourfile.txt  ping 127.0.0.1 -n 10 >NUL & goto loop

echo Should now be connected to G:
REM Display explorer window to G: if you want it to...
START "" G:
Random Solutions  
 
programming4us programming4us