1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
|
@echo off
if exist c:\ goto 1
echo !ERROR!
echo *** TARGET DRIVE DOES NOT EXIST! ***
goto error
:1
if exist C:\test\ goto 2
echo !ERROR!
echo *** TARGET FOLDER DOES NOT EXIST! ***
goto error
:2
echo.
echo Uploading test file 1...
copy a:\script_tests\test1.txt c:\test
goto endupdate
:endupdate
echo.
echo Copletet!
pause
exit
:error
echo.
echo EXITING...
pause
|