mentalhard
Well-known member
- Joined
- Aug 7, 2006
- Messages
- 123
- Programming Experience
- Beginner
I was wondering how do i implement this code in some kind of either hidden process/application or Windows service.
I think i need your suggestion about is the system watcher class an appropriate solution for this problem?
Any alternative maybe? I just need to be sure that user cannot run FF or IE unless the ADMIN has given a grant for that.
Untill then the user will use our custom browser which blocks all websites except those from the granted list. In that way we make our employees to not waste a time surfing on portals, forums etc. Just the websites that we define.
Thanks
VB.NET:
Private Sub FindAndCloseIEandFF()
Dim myProcesses() As Process
Dim myProcess As Process
' Returns array containing all instances of "Firefox".
myProcesses = Process.GetProcessesByName("firefox")
For Each myProcess In myProcesses
myProcess.CloseMainWindow()
Next
' Returns array containing all instances of "IExplore".
myProcesses = Process.GetProcessesByName("IEXPLORE")
For Each myProcess In myProcesses
myProcess.CloseMainWindow()
Next
End Sub
I think i need your suggestion about is the system watcher class an appropriate solution for this problem?
Any alternative maybe? I just need to be sure that user cannot run FF or IE unless the ADMIN has given a grant for that.
Untill then the user will use our custom browser which blocks all websites except those from the granted list. In that way we make our employees to not waste a time surfing on portals, forums etc. Just the websites that we define.
Thanks