To read all comments associated with this story, please click here.
Sharp eyes Pipo
Actually you got me - I'm in the process of learning VB.net. But I think that in an always running Windows Service I should minimize memory usage (.NET is already a bloat) so I didn't import the System.DirectoryServices and System.Security namespaces just to execute those methods once in managed code on the service startup block).
I've searched alternatives for writing Windows Services other than .NET but if you know about one please tell me.
Why .NET? It's easy to learn and if you have an ATi card or already use Paint.NET chances of it's on your system already.
However I'm interested in ways to improve this project so give me advice. Now I care about the service part's memory usage, but the client part is secondary.





Member since:
2005-07-19
i dont like that to make it work you need an extra running service.
and that you need .net framework for such simple program.
lol, little copy/paste from the source code
ExecCmd("net.exe", "localgroup sudoers /ADD")
ExecCmd("cmd.exe", "/c rd /s /q """ + sSvcPath + """")
Directory.CreateDirectory(sSvcPath)
ExecCmd("cacls.exe", sSvcPath + " /E /G sudoers:C")
Edited 2006-06-14 16:51