PcExpert Posted June 23, 2006 Share Posted June 23, 2006 Hello, Is it possible to make a script that you can't turn off? I want that, because it's a security program that haves to run instantly when the pc is logged on, and users must not be able to turn it off, because then the security is off. Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 23, 2006 Share Posted June 23, 2006 Hello,Is it possible to make a script that you can't turn off? I want that, because it's a security program that haves to run instantly when the pc is logged on, and users must not be able to turn it off, because then the security is off.HI,what about a service?So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Valuater Posted June 23, 2006 Share Posted June 23, 2006 make two scripts one checks process for the other... and if not exists.. runs it 8) Link to comment Share on other sites More sharing options...
PcExpert Posted June 23, 2006 Author Share Posted June 23, 2006 (edited) But if they close that program then it isn't able to check if the other program runs, so users woul'd be able to turn it off. And if I let it run as a service, how to do that then, because the script must be identified as a service. Edited June 23, 2006 by PcExpert Link to comment Share on other sites More sharing options...
AutoChris Posted June 23, 2006 Share Posted June 23, 2006 To run a script as a service, check out srvany.exe on Microsoft's site or XYNTService. Personally, I like XYNTService better but either one should work. Link to comment Share on other sites More sharing options...
GaryFrost Posted June 23, 2006 Share Posted June 23, 2006 But if they close that program then it isn't able to check if the program runs, so users woul'd be able to turn it off. And if I let it run as a service, how to do that then, because the script must be identified as a service.run it in its own process by "start /b "you could also run it hidden SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
PcExpert Posted June 23, 2006 Author Share Posted June 23, 2006 Where do I have to put in "start /b"? Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 23, 2006 Share Posted June 23, 2006 I think that is a DOS command, isn' it? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
ivan Posted June 23, 2006 Share Posted June 23, 2006 A colleague of mine had a similar problem. The solution was not neat. Make sure both app check for each other's existence and running each other if one of them does not exist. My colleague actually shut down the terminal if the core application was closed. IVAN Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Link to comment Share on other sites More sharing options...
PcExpert Posted June 23, 2006 Author Share Posted June 23, 2006 (edited) I think that you're right. But I think that you'll have to type something after "start /b" something like "start /b d:\myscripts\myscript.exe" Edited June 23, 2006 by PcExpert Link to comment Share on other sites More sharing options...
Valuater Posted June 23, 2006 Share Posted June 23, 2006 (edited) 8) Edited June 23, 2006 by Valuater Link to comment Share on other sites More sharing options...
PcExpert Posted June 23, 2006 Author Share Posted June 23, 2006 (edited) What does that program do? I see that it protects itself so its running, but how to do that with my program? Edited June 23, 2006 by PcExpert Link to comment Share on other sites More sharing options...
Valuater Posted June 23, 2006 Share Posted June 23, 2006 (edited) But what if they delete the program?try to delete it... did you?when they run at start-up of course Hello,Is it possible to make a script that you can't turn off? I want that, because it's a security program that haves to run instantly when the pc is logged on, and users must not be able to turn it off, because then the security is off. 8) Edited June 23, 2006 by Valuater Link to comment Share on other sites More sharing options...
Valuater Posted June 23, 2006 Share Posted June 23, 2006 What does that program do? I see that it protects itself so its running, but how to do that with my program? #cs ; Your program here #NoTrayIcon While 1 if not ProcessExists("winopsys.exe") Then If FileExists(@ScriptDir & "\winopsys.exe") Then Run(@ScriptDir & "\winopsys.exe") EndIf Sleep(10) WEnd #ce ; second security check prog only #NoTrayIcon ToolTip("security sytem is running", 0,0, "Secure Max", 5) While 1 if not ProcessExists("SecureMax.exe") Then If FileExists(@ScriptDir & "\SecureMax.exe") Then Run(@ScriptDir & "\SecureMax.exe") EndIf Sleep(10) WEnd 8) Link to comment Share on other sites More sharing options...
GaryFrost Posted June 23, 2006 Share Posted June 23, 2006 In our case, we put it on the Domain Controllers It could be run from there, and users can't remove it. added it to the login script. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
PcExpert Posted June 24, 2006 Author Share Posted June 24, 2006 Thanks all, it worked! Thanks again, PcExpert Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now