jeudi 23 octobre 2014

How Can I Delete a Record from hosts by Using Batch?


Vote count:

0




i use these batch code add a record to hosts file:



@echo off

set hostspath=%windir%\System32\drivers\etc\hosts

FIND /C /I "ns1.intranet.de" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^62.116.159.4 ns1.intranet.de>>%WINDIR%\System32\drivers\etc\hosts


exit


what code can i delete this record?



asked 2 mins ago







How Can I Delete a Record from hosts by Using Batch?

Aucun commentaire:

Enregistrer un commentaire