Last edited by David Bailey; 03 Apr 2013 at 06:36.
Thanks for sharing the info. However, a simple way to create a bat file is to right click on the desktop->New->Text Document and enter 2 statements on separate lines: sfc /scannow, pause then save it as RunSFC.bat or whatever you name it.
NOTE: you need to put a pause statement after sfc /scannow so that the user will have a chance to read the output message, otherwise the command windows just simply closes.
Thanks for the information on adding PAUSE.
Would that be:
sfc /scannow, pause
It should be on separate lines:
@ sfc /scannow
@ sfc /scannow & pause
By adding '@' the command will not be echoed in the command windows.
adding & if you want multiple commands in one line
Last edited by topgundcp; 03 Apr 2013 at 00:00.
I added the PAUSE & it kept the window open.
It said to press any key to continue.
I pressed Space bar & the window closed.
A note to Brink --- I studied the adding of images in proper order & figured it out.
Thanks for the help.
Also, I figured out making test posts without posting them.
I just Preview the test post & make changes as needed & when done close the window.
I don't clutter up the forum with tests.
Last edited by David Bailey; 03 Apr 2013 at 06:04. Reason: added more info
Code:sfc /scannow PAUSE Dism /Online /Cleanup-Image /RestoreHealth PAUSE
The DISM command actually fixes things SFC can't fix.
Before running it, SFC found un-fixable problems.
After running it, All problems were fixed.
If you run sfc /scannow as in the .bat file & see problems not fixed press any key & the DISM command will run & fix the problems.
Or to be more efficient you could add another sfc /scannow & pause:
If you wanted to run sfc /scannow again just to be sure things are fixed.Code:sfc /scannow PAUSE Dism /Online /Cleanup-Image /RestoreHealth PAUSE sfc /scannow PAUSE
Last edited by David Bailey; 03 Apr 2013 at 09:40.
Hi, David. Like I wrote you > This is very handy. Thanks for the additions.
Is it possible to omit the pause so as to start one right after the other?