LaurentiuB Posted April 12, 2005 Share Posted April 12, 2005 Hi, How can I made a script for restarting a specific Windows service? Thank you Link to comment Share on other sites More sharing options...
Andre Posted April 12, 2005 Share Posted April 12, 2005 runwait('cmd /c net stop <servicename>') runwait('cmd /c net start <servicename>') Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
LaurentiuB Posted April 12, 2005 Author Share Posted April 12, 2005 thank's Link to comment Share on other sites More sharing options...
Andre Posted April 12, 2005 Share Posted April 12, 2005 Stupid question, but did u ever read the manual ? What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
LaurentiuB Posted April 12, 2005 Author Share Posted April 12, 2005 How can I add a progres bar ... ? Link to comment Share on other sites More sharing options...
SlimShady Posted April 12, 2005 Share Posted April 12, 2005 How can I add a progres bar ... ?<{POST_SNAPBACK}>Stupid question, but did u ever read the manual ?<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
zcoacoaz Posted April 12, 2005 Share Posted April 12, 2005 I don't think he/she did. [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
LaurentiuB Posted April 12, 2005 Author Share Posted April 12, 2005 No, I didn't ... it is true. This is my script ... ProgressOn("Update Norton Antivirus", "Please wait ...", "0 percent",0,0,16) For $i = 10 to 10 step 10 RunWait('cmd /c net stop "Symantec AntiVirus"',@SystemDir,@SW_HIDE) ProgressSet( $i, $i & " percent") Next For $i = 20 to 20 step 10 RunWait('cmd /c net stop "Symantec AntiVirus Definition Watcher"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next For $i = 30 to 30 step 10 RunWait('cmd /c net stop "Symantec Event Manager"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next For $i = 40 to 40 step 10 RunWait('cmd /c net stop "Symantec Settings Manager"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next For $i = 50 to 50 step 10 RunWait('cmd /c net stop "Symantec Event Notification"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next For $i = 60 to 60 step 10 RunWait('cmd /c net start "Symantec AntiVirus"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next For $i = 70 to 70 step 10 RunWait('cmd /c net start "Symantec AntiVirus Definition Watcher"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next For $i = 80 to 80 step 10 RunWait('cmd /c net start "Symantec Event Manager"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next For $i = 90 to 90 step 10 RunWait('cmd /c net start "Symantec Settings Manager"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next For $i = 100 to 100 step 10 RunWait('cmd /c net start "Symantec Event Notification"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") Next ProgressSet(100 , "Done", "Complete") sleep(500) ProgressOff() Link to comment Share on other sites More sharing options...
buzz44 Posted April 12, 2005 Share Posted April 12, 2005 I strongly advise you should RTFM after looking at your code . qq Link to comment Share on other sites More sharing options...
MHz Posted April 12, 2005 Share Posted April 12, 2005 expandcollapse popupProgressOn("Update Norton Antivirus", "Please wait ...", "0 percent",0,0,16) $i = 10 RunWait('cmd /c net stop "Symantec AntiVirus"',@SystemDir,@SW_HIDE) ProgressSet( $i, $i & " percent") $i = 20 RunWait('cmd /c net stop "Symantec AntiVirus Definition Watcher"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") $i = 30 RunWait('cmd /c net stop "Symantec Event Manager"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") $i = 40 RunWait('cmd /c net stop "Symantec Settings Manager"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") $i = 50 RunWait('cmd /c net stop "Symantec Event Notification"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") $i = 60 RunWait('cmd /c net start "Symantec AntiVirus"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") $i = 70 RunWait('cmd /c net start "Symantec AntiVirus Definition Watcher"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") $i = 80 RunWait('cmd /c net start "Symantec Event Manager"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") $i = 90 RunWait('cmd /c net start "Symantec Settings Manager"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") $i = 100 RunWait('cmd /c net start "Symantec Event Notification"',@SystemDir,@SW_HIDE ) ProgressSet( $i, $i & " percent") ProgressSet($i , "Done", "Complete") sleep(500) ProgressOff() Link to comment Share on other sites More sharing options...
LaurentiuB Posted April 12, 2005 Author Share Posted April 12, 2005 I have to improve my english ... I don't know what is RTMF Link to comment Share on other sites More sharing options...
MHz Posted April 12, 2005 Share Posted April 12, 2005 I have to improve my english ... I don't know what is RTMF <{POST_SNAPBACK}>RTFM = Read The Forum Manual. Link to comment Share on other sites More sharing options...
LaurentiuB Posted April 12, 2005 Author Share Posted April 12, 2005 Aha ... I promise that I'll RTMF before post a subject 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