Windows 10: Cannot rename a directory with an illegal name on OneDrive.

Discus and support Cannot rename a directory with an illegal name on OneDrive. in Windows 10 Software and Apps to solve the problem; Good day. I was trying to upload the contents of a disc to OneDrive and I hit a snag: one of the folders I was trying to upload had a name with a colon... Discussion in 'Windows 10 Software and Apps' started by Tadeáš Souček, Jun 18, 2022.

  1. Cannot rename a directory with an illegal name on OneDrive.


    Good day. I was trying to upload the contents of a disc to OneDrive and I hit a snag: one of the folders I was trying to upload had a name with a colon : in the name. Here it is OneDrive:The file name is invalid because I originally used this NTFS disc from a Linux system and I was fairly lazy about sanitizing file names.So, as would be expected, OneDrive uploader complains about the file name and even gives me a button to automatically rename it! Notice on the second image it seems to think that the folder is called " PEACE" rather than "THINK: PEACE".So I click the "Rename" button and this

    :)
     
    Tadeáš Souček, Jun 18, 2022
    #1
  2. ShakeyCan Win User

    Unable to rename/delete folder in OneDrive that has name problems

    Hi all,

    I recently allowed the Windows update to v1903 and all looked OK, except I know have a c:\users\xxxxx.000 directory (where xxxxx is the user name). Anyway, while trying to ensure everything was OK with OneDrive, somehow I managed to create a directory call
    "desktop " - with a space at the end - in the OneDrive folder list.

    Now I receive a OneDrive sync error saying that this folder contains characters not allowed. When I try to rename it, I receive a message in explorer saying that the item doesn't exist. Similar message if I try through a command line. Note that the folder
    hasn't sync'd so it is on my laptop only.


    Cannot rename a directory with an illegal name on OneDrive. 4f42f528-3ecc-4365-9db4-9567b666dc14?upload=true.jpg


    Suggestions on how to remove the folder? Short of rebuilding the PC!

    Thanks!
     
    ShakeyCan, Jun 18, 2022
    #2
  3. File Manager will NOT create Directory Names or Rename a Directory

    8:11 PM 2/10/2016

    8. The File Manager will NOT create Directory Names

    Nor will it Rename a Directory

    It works Making Files, and Renaming them - just Not Directories.

    I even used the Clean Manager on all unimportant files,

    then Optimized (Defrag) the file structure, and Shutdown the system,

    then Rebooted the system from cold. No Good. Still Failing.

    The Windows Defender is up to date - Today.

    No known issues were reported there.

    9:02 PM 2/10/2016
     
    KennethLilly, Jun 18, 2022
    #3
  4. Drone Win User

    Cannot rename a directory with an illegal name on OneDrive.

    Directory Size Utility

    First of all nice utility, Mindweaver!
    Second of all, it's so nice to see that this section ain't dead.

    I have a few questions/suggestions, maybe you'd want to see ...
    • maybe you rename Get Folder button caption to something more intuitive? Add Folder, Get Folder Size, Check Folder Size or something like that?
    • Could you add subfolder files to the right pane? (it can be a tickbox with include sub dirs)
    • maybe you also add export list to excel?
    • there's delete file button maybe you add delete folder button too?
    • and finally maybe you can add UP button for directories?
     
    Drone, Jun 18, 2022
    #4
Thema:

Cannot rename a directory with an illegal name on OneDrive.

Loading...
  1. Cannot rename a directory with an illegal name on OneDrive. - Similar Threads - Cannot rename directory

  2. Windows and/or OneDrive renamed all files in a directory as a "-copy"

    in Windows 10 Gaming
    Windows and/or OneDrive renamed all files in a directory as a "-copy": I got a notification from my Plex remote server today that the music files I wanted to play were missing. Naturally I freaked out and when I got home checked to see if there was a drive failure or something. However, Windows has seemingly renamed every file in my music folder...
  3. Windows and/or OneDrive renamed all files in a directory as a "-copy"

    in Windows 10 Software and Apps
    Windows and/or OneDrive renamed all files in a directory as a "-copy": I got a notification from my Plex remote server today that the music files I wanted to play were missing. Naturally I freaked out and when I got home checked to see if there was a drive failure or something. However, Windows has seemingly renamed every file in my music folder...
  4. Attempt to rename a Directory; I cannot highlight the Directory I want to rename.

    in Windows 10 Gaming
    Attempt to rename a Directory; I cannot highlight the Directory I want to rename.: Windows 11 File Manager. Attempt to rename a Directory. any that I choose but I cannot highlight the Directory I want to rename, it points itself to another Directory that I have not requested....
  5. Attempt to rename a Directory; I cannot highlight the Directory I want to rename.

    in Windows 10 Software and Apps
    Attempt to rename a Directory; I cannot highlight the Directory I want to rename.: Windows 11 File Manager. Attempt to rename a Directory. any that I choose but I cannot highlight the Directory I want to rename, it points itself to another Directory that I have not requested....
  6. Cannot rename a directory with an illegal name on OneDrive.

    in Windows 10 Gaming
    Cannot rename a directory with an illegal name on OneDrive.: Good day. I was trying to upload the contents of a disc to OneDrive and I hit a snag: one of the folders I was trying to upload had a name with a colon : in the name. Here it is OneDrive:The file name is invalid because I originally used this NTFS disc from a Linux system and...
  7. User Name and Folder Cannot be Renamed

    in Windows 10 Gaming
    User Name and Folder Cannot be Renamed: I sent my laptop back to HP for repair. They reloaded the entire operating system. They names my user account "HP" . I have now changed this to "pmaye" except File Manager does not reflect this change as a user in c:\Users\HP. How do I change the HP name to reflect pmayer and...
  8. User Name and Folder Cannot be Renamed

    in Windows 10 Software and Apps
    User Name and Folder Cannot be Renamed: I sent my laptop back to HP for repair. They reloaded the entire operating system. They names my user account "HP" . I have now changed this to "pmaye" except File Manager does not reflect this change as a user in c:\Users\HP. How do I change the HP name to reflect pmayer and...
  9. User Name and Folder Cannot be Renamed

    in Windows 10 Customization
    User Name and Folder Cannot be Renamed: I sent my laptop back to HP for repair. They reloaded the entire operating system. They names my user account "HP" . I have now changed this to "pmaye" except File Manager does not reflect this change as a user in c:\Users\HP. How do I change the HP name to reflect pmayer and...
  10. Renaming the User directory name in Windows 10

    in Windows 10 Customization
    Renaming the User directory name in Windows 10: How do i rename the User directory name in Windows 10. This was truncated during the installation process.... thanks https://answers.microsoft.com/en-us/windows/forum/all/renaming-the-user-directory-name-in-windows-10/8c8e3ec0-8083-40a4-b24b-756c46259fc8