Solved Cannot remove a folder that ends with a "." (Unspecified error 0x80004005)


If they can stop certain characters from being used when naming a file makes me wonder why they can't do it when naming a folder.

I believe that it’s supposed to. Interesting reading here & there about it. Mostly above my paygrade.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.5335
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech: G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    1000/400Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.
I believe that it’s supposed to. Interesting reading here & there about it. Mostly above my paygrade.
If it's above your pay grade I'm not even going to attempt to look it up. :-)
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec B746
    CPU
    Intel Core i7-10700K
    Motherboard
    ASRock Z490 Phantom Gaming 4/ax
    Memory
    16GB (8GB PC4-19200 DDR4 SDRAM x2)
    Graphics Card(s)
    NVIDIA GeForce GTX 1050 TI
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    #1. LG ULTRAWIDE 34" #2. AOC Q32G2WG3 32"
    Screen Resolution
    #1. 3440 X 1440 #2. 1920 x 1080
    Hard Drives
    NVMe WDC WDS100T2B0C-00PXH0 1TB
    Samsung SSD 860 EVO 1TB
    PSU
    750 Watts (62.5A)
    Case
    PowerSpec/Lian Li ATX 205
    Keyboard
    Logitech K270
    Mouse
    Logitech M185
    Browser
    Microsoft Edge and Firefox
    Antivirus
    ESET Internet Security
  • Operating System
    Windows 11 Canary Channel
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec G156
    CPU
    Intel Core i5-8400 CPU @ 2.80GHz
    Motherboard
    AsusTeK Prime B360M-S
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Mouse
    Logitek M185
    Keyboard
    Logitek K270
    Browser
    Firefox, Edge and Edge Canary
    Antivirus
    Windows Defender
If it's above your pay grade I'm not even going to attempt to look it up. :-)

I have a comprehension level that’s the same as the comprehension level of a brick.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.5335
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech: G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    1000/400Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.
I can't create a folder that ends with a period! It just won't stick! 🤷‍♂️

10063.gif
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
Periods at the end of the file name are allowed in NTFS, but not the Win32 API. So if you create a file outside of that API, it'll work just fine. Then if you try to delete it via the API, you're hosed. The \\?\ syntax works because that tells the API not to parse the name, just pass it along to the file system.
 

My Computer

System One

  • OS
    Windows 11 Pro 24H2 [rev. 4061]
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
    Antivirus
    Microsoft Defender
NTFS supports several characters that CMD shell can't handle. REN & RMDIR are built-in commands to CMD.

MS won't update CMD or Explorer, because there's a long history of backwards compatibility which needs to be maintained. Other programs can be stupid, so you need to protect them. PS was written with better intentions, which is why some commands support a -LiteralPath argument which doesn't exist for their CMD equivalents.

A common problem starts with file transfers from a non-Windows system, where they're not bound by the same naming rules.
 

My Computer

System One

  • OS
    Windows 7
REN does not work on a folder with a dot using Command Prompt, nor does MOVE
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.4202
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD 2TB
    Cooling
    fanless
    Internet Speed
    150 Mbps
    Browser
    Brave
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
    Browser
    Brave
    Antivirus
    Webroot
Try Winrar
Right mouse on the folder, add to archive, make sure you tick delete files after archiving
 

My Computer

System One

  • OS
    WIN 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP
    CPU
    i5
    Motherboard
    HP
    Memory
    8 GB
    Graphics Card(s)
    GT 710
    Sound Card
    Realtek
    Monitor(s) Displays
    LG
    Screen Resolution
    1366*768
    Hard Drives
    Samsung 870EVO
    Internet Speed
    100MB
    Browser
    Firefox, Chrome, Edge
    Antivirus
    Malwarebytes Premium
Try Winrar
Right mouse on the folder, add to archive, make sure you tick delete files after archiving
Have you tested this?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.4202
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD 2TB
    Cooling
    fanless
    Internet Speed
    150 Mbps
    Browser
    Brave
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
    Browser
    Brave
    Antivirus
    Webroot
Yes, on all windows, but I haven't used win 11 yet
The result was always awesome
 

My Computer

System One

  • OS
    WIN 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP
    CPU
    i5
    Motherboard
    HP
    Memory
    8 GB
    Graphics Card(s)
    GT 710
    Sound Card
    Realtek
    Monitor(s) Displays
    LG
    Screen Resolution
    1366*768
    Hard Drives
    Samsung 870EVO
    Internet Speed
    100MB
    Browser
    Firefox, Chrome, Edge
    Antivirus
    Malwarebytes Premium

My Computers

System One System Two

  • OS
    Windows 10 Home x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    INTEL Core i5-11400
    Motherboard
    ASUS PRIME H570-PLUS
    Memory
    KINGSTON HyperX Fury Black DDR4 16GB (2 x 8GB) 3200MHz, CL16
    Graphics Card(s)
    EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
    Monitor(s) Displays
    LG 32MA68HY 32" IPS
    Screen Resolution
    1920 x 1080
    Hard Drives
    SAMSUNG 250GB 970 EVO Plus NVMe, M.2 SSD, Crucial 250GB MX500, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
    PSU
    CORSAIR RM550x 80 PLUS Gold 550W
    Case
    ANTEC P10 FLUX
    Cooling
    be quiet! Pure Rock 2, 5 x 120 mm Case Fans
    Internet Speed
    480 + Mbps Up/ 12+ Mbps Down
    Browser
    Vivaldi Snapshot
    Antivirus
    Avast
  • Operating System
    Windows 10 Home x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i5-750
    Motherboard
    ASUS P7P55D
    Memory
    Kingston HyperX Fury Black 8GB (2x4GB) DDR3-1600MHz CL8
    Graphics card(s)
    MSI GeForce GT 240 N240GT-MD1G/D5 1 GB DDR5
    Monitor(s) Displays
    LG 32MA68HY 32" IPS
    Screen Resolution
    1980x1040
    Hard Drives
    Samsung Electronics 840 EVO 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
    PSU
    Antec TruePower New TP-550 550W
    Case
    Antec 300
    Cooling
    Cooler Master Hyper 212+, 4 Noctua NF-P12 120mm, 1 Noctua NF-P14 FLX
    Internet Speed
    480+ Mbps Down/12+Mbps Up
    Browser
    Vivaldi Snapshot
    Antivirus
    Avast
WinRar does work, I tested it.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.4202
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD 2TB
    Cooling
    fanless
    Internet Speed
    150 Mbps
    Browser
    Brave
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
    Browser
    Brave
    Antivirus
    Webroot
I'd simply boot a Linux live Iso (e.g. Ubuntu) and delete the folder under Linux. To me that's easier than fiddling about with CMD/ Powershell.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    AMD Ryzen 9 5950X
    Motherboard
    Asus ROG Strix X570-F Gaming
    Memory
    Corsair Vengeance LPX CMK32GX4M2B3200C16 (64 GB)
    Graphics Card(s)
    Asus ROG Strix 2080Ti
    Sound Card
    Sound Blaster AE-9
    Monitor(s) Displays
    2 x Dell UltraSharp U2413f
    Screen Resolution
    1920 x 1200
    Hard Drives
    Samsung 990 Pro (2000 GB, M.2 2280)
    Seagate Barracuda Pro (12TB, 3.5")
    Seagate Exos X12 512E (12TB, 3.5")
    WD Red Plus (12 TB, 3.5", CMR)
    Corsair Force MP510 M.2 NVME SSD (1788 GB)
    PSU
    Seasonic Prime Ultra Platinum (1000 W)
    Case
    Corsair Obsidian 750D
    Cooling
    Deepcool GamerStorm Captain 240 Pro (12cm)
    Keyboard
    Logitech G910
    Mouse
    Logitech G502
    Internet Speed
    1000 Mbit/s (synchronous)
    Browser
    Firefox, Vivaldi
    Antivirus
    GDATA Internet Security
Is your problem solved?
 

My Computer

System One

  • OS
    WIN 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP
    CPU
    i5
    Motherboard
    HP
    Memory
    8 GB
    Graphics Card(s)
    GT 710
    Sound Card
    Realtek
    Monitor(s) Displays
    LG
    Screen Resolution
    1366*768
    Hard Drives
    Samsung 870EVO
    Internet Speed
    100MB
    Browser
    Firefox, Chrome, Edge
    Antivirus
    Malwarebytes Premium

My Computer

System One

  • OS
    Windows 11 Pro 24H2 26100.3915
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    Windows Defender
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
Try Winrar
Right mouse on the folder, add to archive, make sure you tick delete files after archiving
Didn't worked in my situation.
Was also literally the first thing I've said I've tried in the very first post (as it usually did the trick before) xD
But "winrar trick" sounds too vague I guess, so my bad.

Either way I've tried rmdir /q /s (or just remove it with the winrar trick) and it didn't worked,
Tried to restart, didn't worked,
Tried to use some app called Advanced renamer to rename the folder and it didn't worked,
Tried to change security group didn't work because it not let me even see it in the security tab,
Tried scanned the HDD for errors... didn't worked,
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    Intel® Core™ i7-13700K Raptor Lake Tray
    Motherboard
    MSI MPG Z790 Edge WiFi
    Memory
    G.Skill Trident Z5 RGB Series (Intel XMP) 64GB (4 x 16GB) 288-Pin SDRAM DDR5 6600 CL34-40-40-105 1.40V Dual Channel Desktop Memory F5-6600J3440G16GA2-TZ5RK (Matte Black)
    Graphics Card(s)
    Asus GTX980 Ti 6GB STRIX-GTX980TI-DC3OC-6GD5-GAMING DirectCU III
    Monitor(s) Displays
    AOC 24G2U/BK, Dell U2410 REV A11
    Hard Drives
    Corsair SSD 2.0TB MP700 NVMe PCIE5x4 M.2

    Samsung SSD 1TB 990 PRO NVMe M.2

    Samsung SSD 860 EVO 1TB

    TOSHIBA MK1002TSKB 1TB 24/7, 7200 RPM, 64MB, SATA II (x3)
    PSU
    FPS Hydro PTM PRO ATX3.0(PCIe5.0) HPT2-1200M.gen5 80 PLUS Platinum 12V: 1200W
    Case
    Corsair Carbide Series 500R White Mid-Tower Case
    Cooling
    CPU Fan Cooler: Noctua NH-D15S Chromax.Black, HDD's Cooler: CoolerMaster Cool Drive 6
    Keyboard
    SteelSeries APEX 7
    Mouse
    SteelSeries Sensei 310
    Internet Speed
    1000 megabit
    Other Info
    ODDs:
    Asus Bluray Burner - BW-16D1HT 16X Blu-Ray Sata
    LiteOn Burner DVD IHAS124

    Speakers:
    SonicGear Tatoo 303

    HeadPhones:
    Logitech G335

    Microphone:
    Blue Yeti

    UPS:
    SV1500 ADVICE Smart Vision
Using the \\?\ prefix, as @kelper recommended, should always work to remove a folder that has a name that ends with a dot. For example:

RD \\?\"F:\Program Files\Downloads\Folder."

or, if the folder is not empty:

RD /S /Q \\?\"F:\Program Files\Downloads\Folder."

Note that case does not matter, but the quotes are needed because the path contains at least one space.

Alternatively, you can use the 7-Zip file manager to first rename the folder to remove the trailing dot and then delete the folder.
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer

Latest Support Threads

Back
Top Bottom