Cannot delete filenames/paths too long!!

Posted: 04-15-2009, 12:02 PM

Hi! Please can someone help me? I do not know how this happened, but I
have some folders on my pc that have repeatedly copied themselves over
and over again, nested one inside the other.. I cannot delete any of
them as I get an error that the filenames and file paths are too long..

I have tried to delete the folder from cmd using rmdir /s but I get the
same error message..

I thought to try to map the folders to a different path using SUBST,
but I can't seem to map to any folder (not just the problem ones) When I
use SUBST X with the file path, it just creates a virtual drive X but
not with any folders in it.. not sure if I am doing something wrong with
that..

I have tried renaming each folder to "1" to make the name as short as
possible.. but they are still too long.. also when I get to the last 3
or 4 the possibility to rename is not available either. These folders
are packed full of stuff and this is really slowing down the pc..

i really really need to get rid of them.. any suggestions please?

Thank you!!!


--
Firecracker

Cannot delete filenames/paths too long!!


Responses to "Cannot delete filenames/paths too long!!"

Guest
Posts: n/a
 
Re: Cannot delete filenames/paths too long!!
Posted: 04-15-2009, 12:48 PM
Using \\?\ to prefix filenames

\\?\c:\path\filename

bypasses filename length checks in cmd. Lengths of the total path can be
32k long.

eg:
del \\?\c:\path\path\path\path\path\path\path\path\pat h\path\filename


"Firecracker" <guest@unknown-email.com> wrote in message
news:328f8fdbf197d78669764ab1b58be450@nntp-gateway.com...
>
> Hi! Please can someone help me? I do not know how this happened, but I
> have some folders on my pc that have repeatedly copied themselves over
> and over again, nested one inside the other.. I cannot delete any of
> them as I get an error that the filenames and file paths are too long..
>
> I have tried to delete the folder from cmd using rmdir /s but I get the
> same error message..
>
> I thought to try to map the folders to a different path using SUBST,
> but I can't seem to map to any folder (not just the problem ones) When I
> use SUBST X with the file path, it just creates a virtual drive X but
> not with any folders in it.. not sure if I am doing something wrong with
> that..
>
> I have tried renaming each folder to "1" to make the name as short as
> possible.. but they are still too long.. also when I get to the last 3
> or 4 the possibility to rename is not available either. These folders
> are packed full of stuff and this is really slowing down the pc..
>
> i really really need to get rid of them.. any suggestions please?
>
> Thank you!!!
>
>
> --
> Firecracker
Guest
Posts: n/a
 
Re: Cannot delete filenames/paths too long!!
Posted: 04-15-2009, 01:01 PM
But I'd run chkdsk. There is a type of disk error that sounds like what you
have.

"Firecracker" <guest@unknown-email.com> wrote in message
news:328f8fdbf197d78669764ab1b58be450@nntp-gateway.com...
>
> Hi! Please can someone help me? I do not know how this happened, but I
> have some folders on my pc that have repeatedly copied themselves over
> and over again, nested one inside the other.. I cannot delete any of
> them as I get an error that the filenames and file paths are too long..
>
> I have tried to delete the folder from cmd using rmdir /s but I get the
> same error message..
>
> I thought to try to map the folders to a different path using SUBST,
> but I can't seem to map to any folder (not just the problem ones) When I
> use SUBST X with the file path, it just creates a virtual drive X but
> not with any folders in it.. not sure if I am doing something wrong with
> that..
>
> I have tried renaming each folder to "1" to make the name as short as
> possible.. but they are still too long.. also when I get to the last 3
> or 4 the possibility to rename is not available either. These folders
> are packed full of stuff and this is really slowing down the pc..
>
> i really really need to get rid of them.. any suggestions please?
>
> Thank you!!!
>
>
> --
> Firecracker
Firecracker
Guest
Posts: n/a
 
Re: Cannot delete filenames/paths too long!!
Posted: 04-15-2009, 01:41 PM

Thank you! This is on my home pc, and I am currently at work, but will
try out both of these ideas when I get home and let you know how I get
on..


--
Firecracker
Firecracker
Guest
Posts: n/a
 
Re: Cannot delete filenames/paths too long!!
Posted: 04-16-2009, 08:10 PM

Hi! I am trying to use the "del \\?\" idea but does that only work for
an actual file? The reason I ask is that one of my corrupt folders I
have renamed to "1" and it sits in C\Test so I tried "del \\?\
c:\Test\1\" it asked me if I was sure, so I pressed Y but nothing
happened...

Also, I tried to run chkdsk from cmd but it said I didn't have the
privileges so I have scheduled it to run the next time it boots up..


--
Firecracker
Guest
Posts: n/a
 
Re: Cannot delete filenames/paths too long!!
Posted: 04-17-2009, 04:29 AM
You issued the command correctly. \\?\ isn't a fix all but a way to use
32,000 character long filenames. Programs that want to exceed the normal 260
character limit, and not be compatable withother window filenames, prefix
//?/ to the filename.

See what chkdsk does.
"Firecracker" <guest@unknown-email.com> wrote in message
news:4cbefe2c09f32fc204b87b5a5905e433@nntp-gateway.com...
>
> Hi! I am trying to use the "del \\?\" idea but does that only work for
> an actual file? The reason I ask is that one of my corrupt folders I
> have renamed to "1" and it sits in C\Test so I tried "del \\?\
> c:\Test\1\" it asked me if I was sure, so I pressed Y but nothing
> happened...
>
> Also, I tried to run chkdsk from cmd but it said I didn't have the
> privileges so I have scheduled it to run the next time it boots up..
>
>
> --
> Firecracker
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
showing long filenames ste@tampa-ea.com Windows XP Basics 0 06-25-2004 02:22 PM
XP not saving long filenames wecertt 2000 Windows XP Help & Support 1 02-13-2004 02:40 AM
Command.com and long filenames A. Hagley Windows XP Help & Support 0 01-07-2004 08:06 PM
Filenames TOO Long Bob Windows XP Basics 2 10-03-2003 03:00 AM
Long filenames Bob Windows XP Basics 0 09-26-2003 04:04 PM