How to delete/replace a single known corrupted file

Ravi

Member
Member
Messages
18
Location
USA, and India
In an earlier thread, I've learned how to correct system problems using 'sfc' and 'dism'. The question I'm asking here, is once you know exactly which files are corrupted, how can they manually be replaced?

The PC I'm still working on had several bad files, but between 'sfc' and 'dism' only two remain. Using 'sfc /scannow' there are no more problems, but 'dism' still finds two, one that relates to 'flash', and the other being 'skydrive.exe'.

My plan for tomorrow is to remove 'Flash' completely, which I expect to remove that corrupted file. But 'skydrive' seems to be a part of Windows Explorer. On a mounted, running file system, is there any way to replace a single file with a non-corrupted version?


The best idea I can think of is to place a copy of the file, in this case 'skydrive.exe' in the same folder as the corrupted file, but with a modified name, maybe 'skydrivexxx.exe'. Then, boot to Safe Mode with Command Prompt, navigate to the appropriate folder, rename the corrupted file to 'skydrive-bad.exe', and finally rename the good version to 'skydrive.exe'. Would Windows actually let me do this?

Last question - on another computer I used for checking, skydrive.exe is in this folder:
c:\Windows\WinSxS\amd64_microsoft-windows-skydrive-exehost_31bf3856ad364e35_6.3.9600.17484_none_77b78082feb70f58
If this idea is even plausible, are there other things I would need to do, possibly with the 'attrib' command, to allow the system to accept what I've done?

(I doubt that this will work; it's too simple. )
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
Why not simply delete the bad known file and immediately copy in the good file? I think you can do this easier within Safe Mode.
 

My Computer

System One

  • OS
    Windows 7 Pro 64bit [MS blue-disk set]
    Computer type
    PC/Desktop
    System Manufacturer/Model
    2 Acers & 1 Antec[?]
    CPU
    i7 in 2 Acers, i5 in desktop
    Motherboard
    Desktop w/Gigabyte
    Memory
    Two w/16GB, 1 w/8GB
    Graphics Card(s)
    Laptops GameWorthy; Desktop maybe GameWorthy
    Monitor(s) Displays
    flatscreens; 2 are BluRay worthy
    Screen Resolution
    1368x768; 1600x900
    Hard Drives
    1TB internals; 2 ext usb WD 1TB HDs
    PSU
    what's PSU?
    Cooling
    Regular plus external fans
    Keyboard
    desktio w/PS2
    Mouse
    desktop w/PS2
    Internet Speed
    DSL middle level [160?]
    Browser
    from Netscape 0.9 to FF 36
    Antivirus
    well-balanced, well-configured mult-layered defense is best
    Other Info
    From MS-DOS 3.3, MS-DOS 6.22, from Windows 3.1 to WFW 3.11 to Windows 95-98SE, now to Windows 7 Pro.
    Security for now: Windows 7 Firewall, Emsisoft AM, MSE [scan-only], SpywareBlaster, Ruiware/BillP combine
As said in the other thread that you created. Most files under WinSxS are hardlinked so you need to find out which is the real file name of the file then you can replace it. For example: notepad.exe

From Admin Command prompt, type: fsutil hardlink list c:\windows\notepad.exe then you'll find out the result as follows:
2015-05-12_11-34-23.png
 

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
As said in the other thread that you created. Most files under WinSxS are hardlinked so you need to find out which is the real file name of the file then you can replace it. For example: notepad.exe

From Admin Command prompt, type: fsutil hardlink list c:\windows\notepad.exe then.....

I have two files to remove or repair from a desktop. I have the full pathname to both - got that from the diagnostic reports. (Thanks to you, I now understand this.)

I've never heard of 'fsutil hardlink list' until just now. One more tool to document and add to my toolbox.


One of the file names is 'skydrive,exe' and I do have the complete path to it. 'dism' won't remove it. SFC doesn't see it as a problem. I was hoping to find a way to manually replace it with a non-corrupted version. I tried to re-install Skydrive (now called Onedrive?) earlier today. No change in the error. I haven't yet found a way to completely remove Skydrive/Onedrive from my OS. That would be my first choice, especially since I never use it.
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
Windows is very picky sometimes and not allowing you to delete file/folder freely due to security settings especially under C:\Windows folder. The easiest way I find is to boot up from linux then delete/replace etc....

For this, you can use: Slacko Puppy Linux release.
It's only 160MB in size, use: Rufus - Create bootable USB then boot up from it. You'll see the list of HD's on the bottom left corner, Browse to the folder, right click and delete.
 

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox

My Computer

System One

  • OS
    Windows 8.1.1 Pro with Media Center
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Gateway
    CPU
    AMD K140 Cores 2 Threads 2 Name AMD K140 Package Socket FT1 BGA Technology 40nm
    Motherboard
    Manufacturer Gateway Model SX2110G (P0)
    Memory
    Type DDR3 Size 8192 MBytes DRAM Frequency 532.3 MHz
    Graphics Card(s)
    ATI AMD Radeon HD 7310 Graphics
    Sound Card
    AMD High Definition Audio Device Realtek High Definition Audio USB Audio Device
    Monitor(s) Displays
    Name 1950W on AMD Radeon HD 7310 Graphics Current Resolution 1366x768 pixels Work Resolution 1366x76
    Screen Resolution
    Current Resolution 1366x768 pixels Work Resolution 1366x768 pixels
    Hard Drives
    AMD K140
    Cores 2
    Threads 2
    Name AMD K140
    Package Socket FT1 BGA
    Technology 40nm
    Specification AMD E1-1200 APU with Radeon HD Graphics
    Family F
    Extended Family 14
    Model 2
    Extended Model 2
    Stepping 0
    Revision ON-C0
    Instruction
    Browser
    Opera 24.0
    Antivirus
    Avast Internet Security
Thanks to both of you; Linux does sound like a good way to do this, as the file will no longer be protected. By the way, here is the 'dism' entry in the log file, with directory path and file name:

(p) CSI Payload Corrupt amd64_microsoft-windows-skydrive-exehost_31bf3856ad364e35_6.3.9600.17230_none_77e98b2afe9223f9\SkyDrive.exe

David Bailey, that's one of the places I already found, but 'disabling' it isn't likely to remove the files? If I could delete it, then maybe - but from what I've read so far, I'd have to remove Internet Explorer to do that.

I've only got one week left before I move from Madurai to Pondicherry, so maybe I'll just leave it as-is until my next visit.

Quick question - if I boot into Safe Mode, with DOS prompt, does that in any way start "Windows"? I've already found how to go to a "long directory name" (put it in double quotes). If my memory is correct, I think I could then use the "attrib" command to remove any system permission it had, change it to "rw" instead of "r", and then rename it. I guess if I want to do that, I should first do whats in the link David Bailey posted before the change, so presumably nothing on the PC will be trying to find "skydrive".

.............................or just give up, and refresh Windows.
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
Back
Top