1.

Solve : help with taskkill?

Answer»

Hello, I have a problem if you can call it that way, I want to make a batch file that only allows some executables to run. For example I want to allow only skype.exe and YahooMessenger.exe or any executables written in a file, and the rest of executables to be taskkilled (taskkill *.*) in a loop. Is it POSSIBLE? Can someone help me with this please?
Thank you for ana further help:DYou may be able to use tasklist in batch, but it would be hard because you would have to be updating the process list always. The best way to do this would be to use VB6. Why do you want to do this?I need it to only allow certain programs to run. I want to make something like a PASSWORD prompt, and if you don't enter the password you won't be able to use programs, something like a much restricted quest ACCOUNTA google led me to find Empathy. Which has the curious limitation of only allowing a SINGLE character password.


I also found an application called "Protect EXE Beta" (on http://www.paehl.de/home.htm, dl link is lower down (direct). The site and possibly the program are in German, so YMMV on how well it works.

EDIT: another option might be to install those applications you want to restrict ACCESS to on a separate account and password protect that. That wouldn't prevent somebody from trying to launch the application manually in the other accounts though.



Discussion

No Comment Found