echo off wait1 echo waiting for drive timeout if not exist goto wait1

1
2
3
4
5
6
7
8
@echo off
:wait1
echo "waiting for drive E"
timeout /t 1
if not exist e:\ goto wait1
echo "drive E ready"
start /b C:\Progra~2\Dropbox\Dropbox.exe /home