i would like to ask this:
I have a batch file that connects to remote PC and copy some files.
Now,if the remote PC is closed then a Network error occured of course.
can anyone tell me HOW can i get this "Network error"? lets say something like error handling.
I have read some things about this:
IF ERRORLEVEL == 4 GOTO...........
but honestly i dont know how it works.
what i have done is this:
NET USE B: \IPADDRESSc password /USER:username
XCOPY C:TEST.TXT B: /Y
IF ERRORLEVEL == 4 GOTO error
net use B: /d
can anyone help me?