The Kandie Man Posted February 24, 2006 Share Posted February 24, 2006 I wrote a program that automates the shutdown of a computer, the only problem is that a user has to be logged in for my shutdown script (process)to be active. How do I run my process as soon as the computer boots? I have done tons of google searching but as you know i get totally irrelevent information that talks about how to set processes to run when the user logs in. Thanks for any help in advance guys. "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
greenmachine Posted February 24, 2006 Share Posted February 24, 2006 Sounds like a service. Try searching for something along the lines of "service" (maybe "run program as service"). I know it's been mentioned before. Link to comment Share on other sites More sharing options...
Azu Posted February 24, 2006 Share Posted February 24, 2006 Embed it into the windows kernel! Link to comment Share on other sites More sharing options...
The Kandie Man Posted February 24, 2006 Author Share Posted February 24, 2006 Yeah, i have been looking into services. I will have to do some research on how to add and remove services, i did find the registry key that stores them, but i doubt i should manually edit it. "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
ChrisL Posted February 24, 2006 Share Posted February 24, 2006 You need Microsofts srvany to add a service in and run your program http://support.microsoft.com/kb/q137890/ [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
The Kandie Man Posted February 24, 2006 Author Share Posted February 24, 2006 (edited) What about this:http://support.microsoft.com/?kbid=251192Edit: I see, the link you have is for allowing the computer to run normal applications as services.I also got the Windows 2003 resource kit which has the Srvany.exe but the Windows 2000 resouce kit doesn't have it. I would need to get this to run on Windows 2000 OS and since the Windows 2003 Resource kit only works on XP and Windows Server, then it won't work for Windows 2000 OS. Edited February 24, 2006 by The Kandie Man "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
ChrisL Posted February 24, 2006 Share Posted February 24, 2006 (edited) I've used a version of srvany on 2k, I'll have a look later and see if I still have it on my laptopEdit*Its available here http://www.tacktech.com/display.cfm?ttid=197 Edited February 24, 2006 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
The Kandie Man Posted February 24, 2006 Author Share Posted February 24, 2006 That would be great, thanks a bunch. "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
ChrisL Posted February 24, 2006 Share Posted February 24, 2006 Attached is the one I used if you don't want to download from the other site [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted February 24, 2006 Moderators Share Posted February 24, 2006 This post explains exactly how to use Srvany.exe. Link to comment Share on other sites More sharing options...
Danny35d Posted February 24, 2006 Share Posted February 24, 2006 I don't know what your script do and reading the post you mention that you are looking in a way to add and remved the service. Why you don't copy your script to Documents and Settings\All Users\Start Menu\Programs\Startup and once the script finish running it delete itself. Copying your script to All Users Startup folder don't matter who loggon your script still running. AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
ChrisL Posted February 24, 2006 Share Posted February 24, 2006 I don't know what your script do and reading the post you mention that you are looking in a way to add and remved the service. Why you don't copy your script to Documents and Settings\All Users\Start Menu\Programs\Startup and once the script finish running it delete itself. Copying your script to All Users Startup folder don't matter who loggon your script still running.He wants the script to run before anyone is logged in I think [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Danny35d Posted February 24, 2006 Share Posted February 24, 2006 (edited) He wants the script to run before anyone is logged in I thinkOk, if that is the case he can add the script to HKML\Software\Microsoft\Windows\CurrentVersion\RunOnceEx and the script will run. This is how adware Se works to remove spyware that can not be remove at the first scan. Edited February 24, 2006 by Danny35d AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line 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