in an simple "IF" statement, I want, after the text, for it to GOTO :EOF.
This doesn't happens. it simply says : command completed successfully.
Here's the code
@echo off
if exist s:\1.txt (GOTO :exit
) else (
GOTO :net_use)
:net_use
net use s: \\que-mdt-01\fna_mdt\Logs
echo Do Not Delete >>s:\1.txt
GOTO :EOF
:exit
echo Path already exist. Exiting.
pause
exit
:EOF
pause
exit