PC Review


Reply
Thread Tools Rate Thread

How to delete a very long filename

 
 
Boatguy
Guest
Posts: n/a
 
      30th Aug 2004
Somehow when I created a folder, it created a folder within a folder within
a folder, ad nauseum, all with the same name. See below in ( ). I am unable
to delete this (these) folders because of a long file name. I cannot copy,
edit, rename or move any of the files in the last folder. I don't know how
this happened, everything else is normal.
Here is the file name. ( D:\VIP\08 022\08 022\08 022\08 022\08 022\08 022\08
022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08
022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08
022\08 022\08 022\08 022\08 022\PI)

Is there someway to delete this folder?
Boatguy


 
Reply With Quote
 
 
 
 
Rob Stow
Guest
Posts: n/a
 
      30th Aug 2004
Boatguy wrote:

> Somehow when I created a folder, it created a folder within a folder within
> a folder, ad nauseum, all with the same name. See below in ( ). I am unable
> to delete this (these) folders because of a long file name. I cannot copy,
> edit, rename or move any of the files in the last folder. I don't know how
> this happened, everything else is normal.
> Here is the file name. ( D:\VIP\08 022\08 022\08 022\08 022\08 022\08 022\08
> 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08
> 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08
> 022\08 022\08 022\08 022\08 022\PI)
>
> Is there someway to delete this folder?
> Boatguy
>
>


The simple way
rd /s /q "D:\VIP\08 022"
won't work because the path is too long.

Hence you need to rename all of the "08 022" folders
with a little batch file:
CD /D D:\VIP
:Loop
if not exist "08 022" goto :EOF
rename "08 022" 8
cd 8
goto :Loop

Now you can do something like
rd /s /q D:\VIP\8




 
Reply With Quote
 
Boatguy
Guest
Posts: n/a
 
      30th Aug 2004
Rename did it.Thankew!!
Boatguy
"Rob Stow" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Boatguy wrote:
>
> > Somehow when I created a folder, it created a folder within a folder

within
> > a folder, ad nauseum, all with the same name. See below in ( ). I am

unable
> > to delete this (these) folders because of a long file name. I cannot

copy,
> > edit, rename or move any of the files in the last folder. I don't know

how
> > this happened, everything else is normal.
> > Here is the file name. ( D:\VIP\08 022\08 022\08 022\08 022\08 022\08

022\08
> > 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08

022\08
> > 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08 022\08

022\08
> > 022\08 022\08 022\08 022\08 022\PI)
> >
> > Is there someway to delete this folder?
> > Boatguy
> >
> >

>
> The simple way
> rd /s /q "D:\VIP\08 022"
> won't work because the path is too long.
>
> Hence you need to rename all of the "08 022" folders
> with a little batch file:
> CD /D D:\VIP
> :Loop
> if not exist "08 022" goto :EOF
> rename "08 022" 8
> cd 8
> goto :Loop
>
> Now you can do something like
> rd /s /q D:\VIP\8
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Internet Explorer 0 22nd Apr 2011 10:08 AM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Networking 0 22nd Apr 2011 10:07 AM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Setup 0 22nd Apr 2011 10:06 AM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Configuration 0 22nd Apr 2011 10:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:13 PM.