| 1. |
Solve : How can i add text to a host file through cmd?? |
|
Answer» I just want to add (example): Why thru .cmd ? ?I want to make it into a batch file and autorun on a cd, its going to block known spyware websites.Honestly, I have no idea what you're trying to do. Why on CD? Hosts file must be located in certain folder, not on CD.Make a batch file that adds # Start of entries inserted by Spybot - Search & Destroy 127.0.0.1 www.007guard.com 127.0.0.1 007guard.com 127.0.0.1 008i.com 127.0.0.1 www.008k.com 127.0.0.1 008k.com 127.0.0.1 www.00hq.com 127.0.0.1 00hq.com 127.0.0.1 010402.com 127.0.0.1 www.032439.com 127.0.0.1 032439.com 127.0.0.1 www.0scan.com 127.0.0.1 0scan.com 127.0.0.1 www.1000gratisproben.com 127.0.0.1 1000gratisproben.com 127.0.0.1 www.1001namen.com 127.0.0.1 1001namen.com 127.0.0.1 100888290cs.com 127.0.0.1 www.100888290cs.com to the host file located in Windows\system32\drivers\etc\host make that autorun on a cd.Why does it have to run from some CD, not to go straight to Windows\system32\drivers\etc\?Or why not make a .txt file and just save/copy it from a disk? ok then lets look at this differently, if i had a file (hosts) on the cd, how can i replace that tifle with the host file on the computer through cmd. The reason i want to do it through cmd is so i can make a batch file so it can autorun right off the cd. Quote from: shrshr429 on July 04, 2009, 12:18:26 AM ok then lets look at this differently, if i had a file (hosts) on the cd, how can i replace that tifle with the host file on the computer through cmd. The reason i want to do it through cmd is so i can make a batch file so it can autorun right off the cd.Your obsession with this technique seems QUITE odd. Is this just for your computer, or do you intend this CD to be used for many computers? Other computers.Lets change the question SINCE this is confusing. I know how to delete a file through cmd, so if i delete the host file through cmd, what would be the script to move a file from a cd to the host file's location.copy |
|