Cannot delete a folder on server 2003 ent edition

Posted on 2007-10-17
Last Modified: 2010-04-11
Hi all
I am running server 2003 ent edition domain with AD, DHCP, DNS.  On one of our domain controllers we shared a folder so that users can upload files.  One of the user was smart and made some nested folders which go as deep as about 20 folders then the last folder (which cannot be deleted), when I want to delete it the message comes up 'the file name is too long'
I have tried taken the ownership of the folder, changed permissions, tried DOS RD, RMDIR, Del, Deltree with /S' no luck.  If I click over this folder there is no option to delete it.  Seems like it is controlled by another process.
I need to delete this folder without restarting the server, Help plz
Question by:amanzoor
    LVL 87

    Expert Comment

    Try to map such a folder to a drive letter, so the name is less long, an now try deleting the contents.
    LVL 33

    Expert Comment

    here's a long shot ...

    Have you tried the rd/s command?

    N:\root> rd/s subname
    LVL 30

    Accepted Solution

    Have you tried to remove the directories using the 8.3 names?

    dir /x /ad

    Will list the 8.3 names of the directories. Then you can do something like this:

    rd /s /q PRINTH~1
    LVL 17

    Expert Comment

    Try using the dos short names - dir /x to display the short names.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now