Windows 10: Deleting Windows.old Solved

Page 2 of 2 FirstFirst 12
  1.    02 Jan 2015 #11

    Nice work Mystere!

    I've got a theory about this (I see it a lot at work).
    At work, the errors come on individual files during a copy operation.
    I do not see any errors during an installation - and don't often go looking to delete the Windows.old folder (we usually only delete it if the system is running short on storage space).
    I'll have a deeper look next time I encounter it.

    I suspect that there's several possible issues here:
    1) that the filename length thing is/isn't being tripped during the temporary copy operations (where Windows uses the free space on the drive before it actually copies it to the new location).
    2) that the addition of the Windows.old folder makes the length go over the limit
    3) If, at some point, the operation becomes a rename (rather than a copy) operation), then I'd have to suspect that the rename operation doesn't take the length of sub-file name lengths into consideration.
    4) That the routine that makes the Windows.old folder is fault/error-tolerant and it's forced to copy everything (despite any rules) because this is a critical process during the installation

    As such, I wonder if there are errors listed in the installation log files. It would be good if you could search inside the logs for the filenames that have been seen as being too long.
      My ComputerSystem Spec

  2. Slartybart's Avatar
    Posts : 3,506
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       02 Jan 2015 #12

    toppergraph said: View Post
    No body Knows All to the mystrey`s of any O/S unless you Wright your own. But disk cleanup has been with windows scince I can rember. Where your win.old came from ;I don`t Know. but your now sorted Thanks to #5.
    Mystere said: View Post
    WightWalker said: View Post
    It begs the question: how can the file name be created in the first instance by the very same operating system that prevents it's removal?
    First, the obligatory Beg The Question // Get it right.

    Now that I've annoyed everyone with my pedantics, .....
    Funny sequence of posts.
    toppergraph replies to WightWalker: no one knows all the mystery's ... unless you Wright your own ...
    to wit mystere replies to WightWalker: First, the obligatory Beg The Question // Get it right.
    Now that I've annoyed everyone with my pedantics,....

    Speaking of my own pedanticism and annoying people with the practice:
    pendatic, adj
    pedanticism, noun
    pedantry, noun - plural ped·ant·ries

    Now that I've had a wee bit 'o fun - back to the question that was raised

    C:\windows.old is the way we humans see the filename. But I/O doesn't work in human terms.
    I guess the answer is the last sentence in the quoted paragraph below.
    MSDN said:
    Naming Files, Paths, and Namespaces

    Win32 File Namespaces
    The Win32 namespace prefixing and conventions are summarized in this section and the following section, with descriptions of how they are used. Note that these examples are intended for use with the Windows API functions and do not all necessarily work with Windows shell applications such as Windows Explorer. For this reason there is a wider range of possible paths than is usually available from Windows shell applications, and Windows applications that take advantage of this can be developed using these namespace conventions.

    For file I/O, the "\\?" prefix to a path string tells the Windows APIs to disable all string parsing and to send the string that follows it straight to the file system. For example, if the file system supports large paths and file names, you can exceed the MAX_PATH limits that are otherwise enforced by the Windows APIs. For more information about the normal maximum path limitation, see the previous section Maximum Path Length Limitation.

    Because it turns off automatic expansion of the path string, the "\\?" prefix also allows the use of ".." and "." in the path names, which can be useful if you are attempting to perform operations on a file with these otherwise reserved relative path specifiers as part of the fully qualified path.

    Many but not all file I/O APIs support "\\?"; you should look at the reference topic for each API to be sure.
    There are at least two ways that I know of to 'correctly' remove windows.old if it is present
    a) Post# 5 points to Disk Cleanup
    b) The free version of Piriform cCleaner also offers to cleanup the folder

    I prefer to use native Windows features whenever feasible.

      My ComputerSystem Spec

Page 2 of 2 FirstFirst 12

Related Threads
Deleting fonts in Customization
Is there a way to delete a font in windows 10 build 9860? I used to delete fonts in win8 and win 10( previous build) by right clicking and delete but the new build will not allow to do that.
Solved deleting mail in Browsers and Email
WIN 10 build 10162. How do I delete all mail at once? Mail I do not want to read, junk mail etc. How do I empty the junk folder?
Hi I am using an account with Microsoft Windows 10 Preview and I saved all settings in an account How do I delete all these settings so that when will reinstall Windows 10 with the same Microsoft account, all the default settings...
Solved Deleting Recovery Image folder in General Support
Hi, I was searching my drive to clear space. I came accross the Recovery Image folder, and I wanted to clear it, but wasn't sure if it was safe to do so. I'm not too bothered if I don't have an image to fall back to. It's just that I'm on a 250GB...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:45.
Find Us