Jump to content
Sign in to follow this  
DaveYuhas

Trying to run SFC

Recommended Posts

DaveYuhas

Local $rc = RunWait(@ComSpec & " /k sfc /scannow")

Windows returns: Windows Resource Protection could not start the repair service.

Is there another way to start the SFC?

Share this post


Link to post
Share on other sites
DaveYuhas

 

Try again with this at the top of your script

#RequireAdmin

Thanks, but I get the same result.

Share this post


Link to post
Share on other sites
DaveYuhas

Google it.  Answer is out there.

I've decided to jettison Autoit.  There's little to no third-party support, no instructional books, etc.

Share this post


Link to post
Share on other sites
Melba23

DaveYuhas,

 

There's little to no third-party support

Remember that this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. Although the problem might be urgent to you, it is not to anyone else. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online. :)

no instructional books

And what do you call the Help file? Reading the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at this excellent tutorial - you will find other tutorials in the Wiki (the link is at the top of the page). ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
jdelaney

There is nothing that anyone here can do to help you either.  Google the issue; you are not providing the proper paramaters.

Autoit will only perform the run command, but YOU need to compile the proper command to run.

Again, google your exact failure reason...first link will solve it.

http://lmgtfy.com/?q=Windows+Resource+Protection+could+not+start+the+repair+service

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×