| Customization / Skins & Themes / Windows Utilities / Applications | ©2012-2013 ~scritperkid2 |
The Journal Portal
Browse Journals |
Polls |
deviantART [dee·vee·un'nt·ART]
Keep in Touch!
|
Deviousness |
So here are some suggestions that you might include:
- Add admin manifest file to start it with elevated privileges
- Detect Windows path and you won't need that ugly letter combobox
Use either GetWindowsDirectory or GetSystemDirectory from Windows API. You will only need to complete it with "\System32\drivers\etc\hosts" or "\drivers\etc\hosts" to the returned string
- Another suggestion would be to find out if a domain has already been added
- Use columns to separate IP from domain as well as validating IPv4 and IPv6
but IPv6 is a bit tricky, you need to know the Index of your network interface, be it a real hardware or our loopback (1 by default)
BTW there is a bug, it doesn't write the new entry in a new line, add a \n\r before adding it to hosts file.
Keep up the good work.
Here are some little bugs:
- Detection of duplicates doesn't respect spaces, i.e.
127.0.0.1 local
127.0.0.1 local
127.0.0.1 local #even comments
I would suggest you to get rid of comments first, then get rid of ips and finally evaluate only domains which are the important ones that they should not be duplicated.
And about administrator privileges, a clickonce application can't be run as admin, but it can run other apps with admin privileges so it would be great if it launches itself as admin. I don't know much about C# so here a link that might help you Running a ClickOnce Application as Administrator [link]
BTW: about columns it might be great to pre-write 127.0.0.1 or ::1 so users will only need to input the domain name and hit enter (and on success clear input), and I don't know if you will leave multiline input because I hit enter and it adds another line to write in which also allows repeated domains on add entry.
He he, it might be a simple application but involves many and maybe complicated things unknown by users, nice work and as I said before, keep up the good work.
I do know about the bug, in my description I said to hit enter once in the textbox, then the entry. That is really inconvenient, but I couldn't think of a better way. Thanks for the \n\r!
nice tool and it's very useful for command line ads removers.
btw, maybe app would be looking better (and working) if it would be listview so that we can edit all hosts, vhosts and addresses...though (or however file is configured)