-----Original Message-----
(e-mail address removed) [
[email protected]]
posted:
Thank you, that works, but as you stated it puts in
redundant entries, any idea where syntex to check for that
line?
Try:
FINDSTR /I "123.123.123.123" %WINDIR%\SYSTEM32 \DRIVERS\ETC\SERVICES >NUL
IF %ERRORLEVEL%==1 ECHO. >> %WINDIR%\SYSTEM32 \DRIVERS\ETC\SERVICES&&ECHO
123.123.123.123 hostname >> %WINDIR%\SYSTEM32 \DRIVERS\ETC\SERVICES
ws
--
The sea was angry that day, my friends. Like an old man, trying to send
back soup at a deli.
.