hidden hit counter
Welcome to WindowsForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Unable to delete folder in Windows XP

 
   Windows XP (Home) -> Windows XP Arch -> Windows XP General Arch3 RSS
Next:  file copying problem  
Author Message
soumenbhatt

External


Since: Jan 21, 2007
Posts: 4



(Msg. 1) Posted: Sun Jan 21, 2007 12:23 pm
Post subject: Unable to delete folder in Windows XP
Archived from groups: microsoft>public>windowsxp>general (more info?)

I had installed Tomcat in my WinXP SP2 machine. Something went wrong
and although Tomcat is working fine, it created a recursive folder
structure
TomcatJSPExample\build\web\WEB-INF\classes\TomcatJSPExample\build\web\...
etc. Due to this, some of the inner folders are having a path too long
for Windows to access. So Windows can neither access them, nor can
delete them.

I would very much like to delete this inner forders, which are
basically of no use (how did they come to exist in the first place?).
However, I have been unable to delete these folders. Every time I try
to delete them, I get the following error:

Cannot delete schemas: The file name you specified is not valid or too
long.
Specify a different file name.

I have tried doing it with Windows explorer, in DOS (does not give any
error in DOS, but neither does it delete the folders), and also
programmatically using .Net. Has anyone faced this issue? Any known
resolution to this?

Thanks a lot in advance for any kind of help on this.

 >> Stay informed about: Unable to delete folder in Windows XP 
Back to top
Login to vote
Wesley Vogel

External


Since: Feb 23, 2004
Posts: 5718



(Msg. 2) Posted: Sun Jan 21, 2007 2:29 pm
Post subject: Re: Unable to delete folder in Windows XP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Path Too Long

To work around this problem, reduce the length of the path to less than 256
characters.

In Windows Explorer, select the folder one level above the folder that
returns the error. Right-click the folder returning the error and then click
Rename. Rename the folder to reduce the number of characters used in the
folder name.

Rename the folder so that the target files that are deeper than the MAX_PATH
no longer exist. If you do this, start at the root folder (or any other
convenient place), and then rename folders so that they have shorter names.

Rename subfolders in the path to a file so that the total path or file name
is less than the max_path setting or 256 characters. Start with subfolders
that are closer to the root so that you are always working with less than
256 characters.

Also see...
Files exist in paths that are deeper than MAX_PATH characters
here for other options...
You cannot delete a file or a folder on an NTFS file system volume
http://support.microsoft.com/kb/320081

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1169411030.755460.195120@38g2000cwa.googlegroups.com,
hunted and pecked:
> I had installed Tomcat in my WinXP SP2 machine. Something went wrong
> and although Tomcat is working fine, it created a recursive folder
> structure
> TomcatJSPExample\build\web\WEB-INF\classes\TomcatJSPExample\build\web\...
> etc. Due to this, some of the inner folders are having a path too long
> for Windows to access. So Windows can neither access them, nor can
> delete them.
>
> I would very much like to delete this inner forders, which are
> basically of no use (how did they come to exist in the first place?).
> However, I have been unable to delete these folders. Every time I try
> to delete them, I get the following error:
>
> Cannot delete schemas: The file name you specified is not valid or too
> long.
> Specify a different file name.
>
> I have tried doing it with Windows explorer, in DOS (does not give any
> error in DOS, but neither does it delete the folders), and also
> programmatically using .Net. Has anyone faced this issue? Any known
> resolution to this?
>
> Thanks a lot in advance for any kind of help on this.

 >> Stay informed about: Unable to delete folder in Windows XP 
Back to top
Login to vote
soumenbhatt

External


Since: Jan 21, 2007
Posts: 4



(Msg. 3) Posted: Tue Jan 23, 2007 10:07 pm
Post subject: Re: Unable to delete folder in Windows XP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That was an excellent suggestion. I renamed all the folders to single
character names, and that resolved the issue.

The first time I faced the same problem while renaming a few folders
down the line. So I started a few levels up. And it went smoothly
thereafter.

Thanks a lot for the suggestion. Really appreciate the help.

Thanks,
Soumen

On Jan 21, 1:29 pm, "Wesley Vogel" wrote:
> Path Too Long
>
> To work around this problem, reduce the length of the path to less than 256
> characters.
>
> In Windows Explorer, select the folder one level above the folder that
> returns the error. Right-click the folder returning the error and then click
> Rename. Rename the folder to reduce the number of characters used in the
> folder name.
>
> Rename the folder so that the target files that are deeper than the MAX_PATH
> no longer exist. If you do this, start at the root folder (or any other
> convenient place), and then rename folders so that they have shorter names.
>
> Rename subfolders in the path to a file so that the total path or file name
> is less than the max_path setting or 256 characters. Start with subfolders
> that are closer to the root so that you are always working with less than
> 256 characters.
>
> Also see...
> Files exist in paths that are deeper than MAX_PATH characters
> here for other options...
> You cannot delete a file or a folder on an NTFS file system volumehttp://support.microsoft.com/kb/320081
>
> --
> Hope this helps. Let us know.
>
> Wes
> MS-MVP Windows Shell/User
>
> Innews:1169411030.755460.195120@38g2000cwa.googlegroups.com,
> hunted and pecked:
>
> > I had installed Tomcat in my WinXP SP2 machine. Something went wrong
> > and although Tomcat is working fine, it created a recursive folder
> > structure
> > TomcatJSPExample\build\web\WEB-INF\classes\TomcatJSPExample\build\web\...
> > etc. Due to this, some of the inner folders are having a path too long
> > for Windows to access. So Windows can neither access them, nor can
> > delete them.
>
> > I would very much like to delete this inner forders, which are
> > basically of no use (how did they come to exist in the first place?).
> > However, I have been unable to delete these folders. Every time I try
> > to delete them, I get the following error:
>
> > Cannot delete schemas: The file name you specified is not valid or too
> > long.
> > Specify a different file name.
>
> > I have tried doing it with Windows explorer, in DOS (does not give any
> > error in DOS, but neither does it delete the folders), and also
> > programmatically using .Net. Has anyone faced this issue? Any known
> > resolution to this?
>
> > Thanks a lot in advance for any kind of help on this.
 >> Stay informed about: Unable to delete folder in Windows XP 
Back to top
Login to vote
Wesley Vogel

External


Since: Feb 23, 2004
Posts: 5718



(Msg. 4) Posted: Wed Jan 24, 2007 9:12 am
Post subject: Re: Unable to delete folder in Windows XP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Glad to hear it. Keep having fun.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1169618821.235130.32490@a34g2000cwb.googlegroups.com,
hunted and pecked:
> That was an excellent suggestion. I renamed all the folders to single
> character names, and that resolved the issue.
>
> The first time I faced the same problem while renaming a few folders
> down the line. So I started a few levels up. And it went smoothly
> thereafter.
>
> Thanks a lot for the suggestion. Really appreciate the help.
>
> Thanks,
> Soumen
>
> On Jan 21, 1:29 pm, "Wesley Vogel" wrote:
>> Path Too Long
>>
>> To work around this problem, reduce the length of the path to less than
>> 256
>> characters.
>>
>> In Windows Explorer, select the folder one level above the folder that
>> returns the error. Right-click the folder returning the error and then
>> click
>> Rename. Rename the folder to reduce the number of characters used in the
>> folder name.
>>
>> Rename the folder so that the target files that are deeper than the
>> MAX_PATH
>> no longer exist. If you do this, start at the root folder (or any other
>> convenient place), and then rename folders so that they have shorter
>> names.
>>
>> Rename subfolders in the path to a file so that the total path or file
>> name
>> is less than the max_path setting or 256 characters. Start with
>> subfolders
>> that are closer to the root so that you are always working with less than
>> 256 characters.
>>
>> Also see...
>> Files exist in paths that are deeper than MAX_PATH characters
>> here for other options...
>> You cannot delete a file or a folder on an NTFS file system
>> volumehttp://support.microsoft.com/kb/320081
>>
>> --
>> Hope this helps. Let us know.
>>
>> Wes
>> MS-MVP Windows Shell/User
>>
>> Innews:1169411030.755460.195120@38g2000cwa.googlegroups.com,
>> hunted and pecked:
>>
>>> I had installed Tomcat in my WinXP SP2 machine. Something went wrong
>>> and although Tomcat is working fine, it created a recursive folder
>>> structure
>>>
TomcatJSPExample\build\web\WEB-INF\classes\TomcatJSPExample\build\web\...
>>> etc. Due to this, some of the inner folders are having a path too long
>>> for Windows to access. So Windows can neither access them, nor can
>>> delete them.
>>
>>> I would very much like to delete this inner forders, which are
>>> basically of no use (how did they come to exist in the first place?).
>>> However, I have been unable to delete these folders. Every time I try
>>> to delete them, I get the following error:
>>
>>> Cannot delete schemas: The file name you specified is not valid or too
>>> long.
>>> Specify a different file name.
>>
>>> I have tried doing it with Windows explorer, in DOS (does not give any
>>> error in DOS, but neither does it delete the folders), and also
>>> programmatically using .Net. Has anyone faced this issue? Any known
>>> resolution to this?
>>
>>> Thanks a lot in advance for any kind of help on this.
 >> Stay informed about: Unable to delete folder in Windows XP 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
unable to delete a folder... Please help - Good day all... looking for some help... I was trying to copy a folder ... g:\junk7\ratpics to f:\my web page\my web pictures... I had thought the move was complete and deleted the folder ratpics from the G:\junk7 folder after the move. I made a..

Unable to view or access any folder in Windows Explorer - Can any please advise on why on my new pc - recently networked to another 2 (older ones - all running XP) suddenly will not display or open up a windows explorer window - ie you click on "my computer" etc from start option - the screen flick...

Unable to delete folders and files on backup to external h.. - Windows XP-Profession, Dell Inspiron 8600, Maxtor 120 GB Onetouch. I did a retrospective backup in 2003 and left it on this HD. Now I need the HD and all it's space so I have been deleting or moving everything. This until I began receiving an error..

Cannot delete folder (directory) - I programmatically created a folder named "Backup ". Yes, an invalid trailing blank. Trailing periods are removed but not blanks. Windows uses it just fine placing content inside it. Chkdsk sees no problem but I cannot delete the folder...

Can't delete/rename folder as the name ends with space - Due to a bug in one of my programs a folder got renamed to a name with a space at the end. I can't delete, move, or rename this folder. I can move the parent folder and it comes along. So I have moved it off to a problem area and renamed the parent. But....
   Windows XP (Home) -> Windows XP Arch -> Windows XP General Arch3 All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
  Windows XP
 Win 2000/NT/98/ME
 Windows Vista!


[ Contact us | Terms of Service/Privacy Policy ]