Solved How to delete entry in batch file

January 16, 2015 at 12:25:58
Specs: Windows 8.1
i learn batch in school and now im stuck. i want to create a little batch to prank my friend by adding and deleting entry in the Hosts this is work to add things but i can't delete it. I must go erease Hosts file manually.


ok this work well
But when i want to delete this entry it wont work

ECHO Delete>>C:\windows\system32\drivers\etc\hosts

Can you help me please
Sorry for my bad english!

See More: How to delete entry in batch file

Report •

January 17, 2015 at 00:19:04
✔ Best Answer
:: I use but regardless, it's difficult at best to eliminate google,
:: double-click & other crapware.
:: Because sites link direct; don't use HOSTS or DNS
:: But that's not what you asked.
::====== script starts here ===============
:: goog.bat 2015-01-17 15:03:48.97
@echo off & setLocal enableDELAYedeXpansioN

pushd C:\WINDOWS\system32\drivers\etc
find /i /v "" hosts > #
move/y # hosts

goto :eof
::====== script ends here =================

M2 Golden-Triangle

Report •
Related Solutions

Ask Question