Trouble deleting and renaming files

R

rfdjr1

I'm running Windows XP Pro. I've been trying to delet and/or rename
some files, but whenever I right click on the, I get a Windows
Explorer Error message and Explorer closes down. After a few tries, I
seem to figure it has to do with file names in excess of about 80
characters. Is there a limit in Windows XP on working with files with
long names? Thanks.
 
C

Carey Frisch [MVP]

File Names in Windows XP Professional
http://www.microsoft.com/resources/...Windows/XP/all/reskit/en-us/prkc_fil_rbrx.asp

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User
Microsoft Newsgroups

Get Windows XP Service Pack 2 with Advanced Security Technologies:
http://www.microsoft.com/athome/security/protect/windowsxp/choose.mspx

-------------------------------------------------------------------------------------------

:

| I'm running Windows XP Pro. I've been trying to delet and/or rename
| some files, but whenever I right click on the, I get a Windows
| Explorer Error message and Explorer closes down. After a few tries, I
| seem to figure it has to do with file names in excess of about 80
| characters. Is there a limit in Windows XP on working with files with
| long names? Thanks.
 
D

David Candy

260 or 32000 depending on function used. More lkely is that you have a program that can't handle lengths greater than 80, if this is in fact the cause.

What's the error messge?
 
R

rfdjr1

A window just opens up saying:
Windows Explorer
Windows Explorer has encountered a problem and needs to close. We are
sorry for the inconvenience.

I also checked the files. One is only around 90 characters long, The
other, maybe 100. Also, if I highlight the file in Explorer and click
the big red X for delete in the tool bar, I get the same message. I
can't do anything with the file. As added info, they're both mp3
files. Tunes which when I downloaded them had a long file name.
 
D

David Candy

Look in event viewer, type it in Help to see how. Also r/c a file that doesn't crash but is a MP3 and what is on the menu (ignore Delete/copy/etc I know they are there). If you rename an offending file to a shorter name does it still crash?

Type cmd in Start Run then type on one line

ren "c:\documents and settings\your name\my documents\my music\mylongfilename.mp3" "c:\documents and settings\your name\my documents\my music\ashortname.mp3"

But replace the actual path and name with your own file.

260/32000 is the maximun length of the full name incl path. If it is over 260 modify above to use 32000 syntax

ren "\\?\c:\documents and settings\your name\my documents\my music\mylongfilename.mp3" \\?\c:\documents and settings\your name\my documents\my music\ashortname.mp3

Then try copying it to the root of C to get a real short name

Copy "c:\documents and settings\your name\my documents\my music\mylongfilename.mp3" C:\

Does r/c crash either of the two shorter files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top