Cannot delete a folder on server 2003 ent edition

Posted on 2007-10-17
Medium Priority
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 88

Expert Comment

ID: 20092979
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

ID: 20092980
here's a long shot ...

Have you tried the rd/s command?

N:\root> rd/s subname
LVL 30

Accepted Solution

SteveGTR earned 2000 total points
ID: 20092984
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 16

Expert Comment

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

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is about my experience upgrading my consulting machine to Windows 10 Version 1709 (The Fall 2017 Creator Update)
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

864 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