Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Help needed for a batch file to run in Win 10 Pro 64
New Posts  All Forums:Forum Nav:

Help needed for a batch file to run in Win 10 Pro 64

post #1 of 3
Thread Starter 
I like to run under start> CMD> run as administrator> "sfc /scannow" (without the qoutes) and would like a neat automated batch file to do so, something I could put in my quick launch toolbar and even add an icon too to make everything look neat.

Would someone be able to help me with this as I do not understand fully what to do anymore, used to do batch files in DOS days, but have become lazy and older now and less adventurous in this area, heh.

So, how to make a batch file to run sfc /scannow in admin mode please?

Thanks.
post #2 of 3
Can't you just create a text file > type sfc /scannow and save it as a .bat file then run that as admin?
Piledriver Reborn
(18 items)
 
   
CPUMotherboardGraphicsRAM
Intel I7 4770k 4.5Ghz Asus Z97 P Gigabyte RX 480 4GB (580 BIOS) 16Gb (4x4Gb) @ 1600Mhz 
Hard DriveHard DriveHard DriveCooling
Kingston SSDNow 120GB M.2 Seagate Constellation ES 2TB Sandisk X110 128gb  Enermax UCTP12P 120mm x 5 
CoolingOSMonitorKeyboard
Phanteks U-Type Black Windows 10 Pro Samsung 27" Curved S27D590C Corsair K95 RGB Platinum 
PowerCaseMouseMouse Pad
Corsair Modular RM650X Zalman Z11 Plus Corsair Glaive RGB Corsair Polaris 
AudioOther
Corsair Void Pro 7.1 Ikea Corner Desk 
CPUMotherboardGraphicsRAM
Intel Core I7 3540M Dell Panther Point Chipset QM77 Intel HD Graphics 4000 16Gb (2x8gb) Hynix DDR3l 
Hard DriveCoolingOSMonitor
128GB Sandisk X110 Dell Stock Fan + Arctic Silver 5 Windows 10 Pro 1366x768 60Hz 
KeyboardPowerMouseAudio
UK-Layout Dell Keyboard 66600mWh Dell Extended Battery Dell Touchpad IDT 92HD93BXX Audio 
CPUMotherboardGraphicsRAM
Intel Core I5 3427U Panasonic CF-AX2 Intel HD 4000 Series 4GB 1333Mhz DDR3L 
Hard DriveCoolingOSOS
128GB Samsung P830 M-Sata SSD Stock Cooler Windows 10 Pro Ubuntu 17.04 
MonitorKeyboardPowerMouse
1366x768 10.1" Touchscreen @ 60Hz Panasonix CF-AX2 EN-GB Qwerty Keyboard Panasonic 29520mWh Panasonic CF-AX2 Touchpad 
Audio
Realtek ALC269 
  hide details  
Reply
Piledriver Reborn
(18 items)
 
   
CPUMotherboardGraphicsRAM
Intel I7 4770k 4.5Ghz Asus Z97 P Gigabyte RX 480 4GB (580 BIOS) 16Gb (4x4Gb) @ 1600Mhz 
Hard DriveHard DriveHard DriveCooling
Kingston SSDNow 120GB M.2 Seagate Constellation ES 2TB Sandisk X110 128gb  Enermax UCTP12P 120mm x 5 
CoolingOSMonitorKeyboard
Phanteks U-Type Black Windows 10 Pro Samsung 27" Curved S27D590C Corsair K95 RGB Platinum 
PowerCaseMouseMouse Pad
Corsair Modular RM650X Zalman Z11 Plus Corsair Glaive RGB Corsair Polaris 
AudioOther
Corsair Void Pro 7.1 Ikea Corner Desk 
CPUMotherboardGraphicsRAM
Intel Core I7 3540M Dell Panther Point Chipset QM77 Intel HD Graphics 4000 16Gb (2x8gb) Hynix DDR3l 
Hard DriveCoolingOSMonitor
128GB Sandisk X110 Dell Stock Fan + Arctic Silver 5 Windows 10 Pro 1366x768 60Hz 
KeyboardPowerMouseAudio
UK-Layout Dell Keyboard 66600mWh Dell Extended Battery Dell Touchpad IDT 92HD93BXX Audio 
CPUMotherboardGraphicsRAM
Intel Core I5 3427U Panasonic CF-AX2 Intel HD 4000 Series 4GB 1333Mhz DDR3L 
Hard DriveCoolingOSOS
128GB Samsung P830 M-Sata SSD Stock Cooler Windows 10 Pro Ubuntu 17.04 
MonitorKeyboardPowerMouse
1366x768 10.1" Touchscreen @ 60Hz Panasonix CF-AX2 EN-GB Qwerty Keyboard Panasonic 29520mWh Panasonic CF-AX2 Touchpad 
Audio
Realtek ALC269 
  hide details  
Reply
post #3 of 3
Thread Starter 
That simple, ehh?

I guess that would work, was really looking for a one click solution and not have to right click and choose run as admin, but unless anyone has a more exotic answer I think I know what to do now, you've put me on the right track, pretty sure I have an automated batch file here that will run as admin for something else I can adapt.

Thanks.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Help needed for a batch file to run in Win 10 Pro 64