Windows 10: Windows folder has turned into a zero length bytes file

Discus and support Windows folder has turned into a zero length bytes file in Windows 10 Network and Sharing to solve the problem; Hi all, Yesterday the pc didn't want to boot. After the reset and after looking inside the hard disk I discovered that in the system disk the windows... Discussion in 'Windows 10 Network and Sharing' started by ThomasGRL, Jul 23, 2020.

  1. ThomasGRL Win User

    Windows folder has turned into a zero length bytes file


    Hi all,

    Yesterday the pc didn't want to boot. After the reset and after looking inside the hard disk I discovered that in the system disk the windows folder has become a file of zero length.

    The disk is a fairly new SSD, and had no problems before yesterday, but another disk traditional HDD used as storage had problems reported on the event viewer and was replaced 4 days ago I'm 100% sure I haven't confused hard drives.

    OS: windows 10 pro, latest updated release
    PC: old I7 with 22 Gb of RAM, VGA Nvidia 1050. 2xHDD WD 2TB and 2xSSD 250 GB, drives not raid, but it was planned to move to. DVD RAM, SD card reader. Power source: PSU bronze + UPS.
    Mainly used for home video processing, and some games.

    I could reinstall, but of course the process of restoring the whole system, as it is now, is quite long.
    What did I do wrong? Or, do you know if there is any similar problem on windows 10 and a trick to recover windows?

    Thanks in advance for any reply.

    Thomas

    :)
     
    ThomasGRL, Jul 23, 2020
    #1
  2. ThomasGRL Win User

    Windows folder has turned into a zero length bytes file

    Hi all,

    Yesterday the pc didn't want to boot. After the reset and after looking inside the hard disk I discovered that in the system disk the windows folder has become a file of zero length.

    The disk is a fairly new SSD, and had no problems before yesterday, but another disk (traditional HDD) used as storage had problems reported on the event viewer and was replaced 4 days ago (I'm 100% sure I haven't confused hard drives).

    OS: windows 10 pro, latest updated release

    PC: old I7 with 22 Gb of RAM, VGA Nvidia 1050. 2xHDD WD 2TB and 2xSSD 250 GB, (drives not raid, but it was planned to move to). DVD RAM, SD card reader. Power source: PSU bronze + UPS.

    Mainly used for home video processing, and some games.

    I could reinstall, but of course the process of restoring the whole system, as it is now, is quite long.

    What did I do wrong? Or, do you know if there is any similar problem on windows 10 and a trick to recover windows?

    Thanks in advance for any reply.

    Thomas
     
    ThomasGRL, Jul 30, 2020
    #2
  3. Bree Win User
    Creating Zero Byte Files of a folder of large sized files

    It's probably more elegant to do it in powershell, in a batch file you don't have the commands available that can zero the length of an existing file, or create a new file. It's a bit of a kludge, but it can be done.

    DIR can make a list of the filenames, and a FOR loop can work through that list. What you can do is pipe the output of a command that has no output text to a file (so you are making a zero length file, just as you can in Notepad). If that happens to be an existing file it will overwrite it with a new zero length file of the same name. There are very few commands that can be tricked into outputting nothing, but I have found one that will do the job.

    This, copied and pasted into a batch file called ZERO.BAT will first list all the files in the current folder to a file called files.txt, then overwrite each of them with a zero length file of the same name. The 'dir /b *.xxx' command was chosen for this as it will produce no output (unless of course you actually do have files with the .xxx extension). It's a one-shot suicidal batch file, as it will in the process zero itself!

    Code:
    The result is....


    Windows folder has turned into a zero length bytes file [​IMG]


    As I said, it's a kludge, it's messy because the 'dir /b *.xxx' echos a 'file not found' to the screen, and it leaves behind the files.txt and zero.bat files - but it does work.
     
  4. Windows folder has turned into a zero length bytes file

    Movie files become zero-time-length

    SOME (NOT ALL) movie files (various file extensions) that play well in VLC-in-Win7 when still on External Hard Drive, are reduced to zero length (but NOT zero bytes) when copied to 64Gb micro SD card, and so do NOT play in VLC (or GOM). Is there a remedy ?
     
    Sebastian42, Jul 30, 2020
    #4
Thema:

Windows folder has turned into a zero length bytes file

Loading...
  1. Windows folder has turned into a zero length bytes file - Similar Threads - folder has turned

  2. How to delete Zero byte file from windows 10 desktop

    in Windows 10 Network and Sharing
    How to delete Zero byte file from windows 10 desktop: Hi,I would like to delete zero byte file from Windows 10 desktop, pls see my attached photo. How can I fix that. https://answers.microsoft.com/en-us/windows/forum/all/how-to-delete-zero-byte-file-from-windows-10/c31830a9-e481-4491-9e6e-1fe12009e4b8
  3. How to delete Zero byte file from windows 10 desktop

    in Windows 10 Gaming
    How to delete Zero byte file from windows 10 desktop: Hi,I would like to delete zero byte file from Windows 10 desktop, pls see my attached photo. How can I fix that. https://answers.microsoft.com/en-us/windows/forum/all/how-to-delete-zero-byte-file-from-windows-10/c31830a9-e481-4491-9e6e-1fe12009e4b8
  4. How to delete Zero byte file from windows 10 desktop

    in Windows 10 Software and Apps
    How to delete Zero byte file from windows 10 desktop: Hi,I would like to delete zero byte file from Windows 10 desktop, pls see my attached photo. How can I fix that. https://answers.microsoft.com/en-us/windows/forum/all/how-to-delete-zero-byte-file-from-windows-10/c31830a9-e481-4491-9e6e-1fe12009e4b8
  5. Is it safe to delete Empty Folders or Zero-byte files in Windows 10?

    in Windows 10 News
    Is it safe to delete Empty Folders or Zero-byte files in Windows 10?: [ATTACH]Unfinished downloads, tidbits of earlier installations, and other junk files over time build up […] This article Is it safe to delete Empty Folders or Zero-byte files in Windows 10? first appeared on TheWindowsClub.com. read more...
  6. Zero byte files while sorting desktop icons.

    in Windows 10 Network and Sharing
    Zero byte files while sorting desktop icons.: Hey team, Recently in my Laptop, I noticed that certain 0 byte files appear on my desktop while i simply right click and select sort and any sub-options from the sub-menu. Once i refresh, it disappears and same thing happens if repeated. Usually i keep no icons on my...
  7. Zero-byte files

    in Windows 10 Network and Sharing
    Zero-byte files: I recently ran a program to find duplicate files on my system Windows 10. It found dozensof files with no data in them--length = zero bytes. Some even seem to be system files. Can these be deleted? No savings in disk space, but it would clean up the file system. Do any...
  8. Disk usage is Zero bytes 0%

    in Windows 10 BSOD Crashes and Debugging
    Disk usage is Zero bytes 0%: Hello everyone I am facing a terrible problem regarding my windows And its my disk usage As u can see it says 0 % and because of that everything isn't working at all and i tried everything and still no one gave me a correct diagnosis or correct solution Please help me...
  9. NTFS folder on external drive shows as zero-byte file

    in Windows 10 Network and Sharing
    NTFS folder on external drive shows as zero-byte file: I'm having problems with a folder on an external hard drive. Recently I had a Windows notification to repair the drive, which I did. The next time I plugged in the drive, one of the folders was missing. On closer inspection I found that there was a zero-byte file with the...
  10. Data files not saving correctly [File names but zero byte files]

    in Windows 10 Software and Apps
    Data files not saving correctly [File names but zero byte files]: I have a problem with a program not saving preset data. Possibly due to harlink extenstion with only one piece of software. I use symbolic hardlinks on my system but I do not know if the following has any bearing on the issue with the software I am using. The software...