Solved

re-naming long file name.

Posted on 2002-06-15
7
129 Views
Last Modified: 2010-04-13
Hiya,

i have a file that has a name  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

THAT REALY IS THE FILE NAME !!

i cant delete or rename it .. i get the following error..

Cannot rename file : the filename you specified is invalid or too long specify a different filename

and the same message when i try to delete ..

any ideas ?

stelogic
0
Comment
Question by:stelogic
7 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 7080600
1) Open a CMD window (i.e. the DOS window - but it's not really DOS).

2) CD to the folder that CONTAINS this really long file name.

3) Type: DIR /X and note the SHORT FILE NAME.  It will be something like "XXXXXX~1" but note it.

4) Delete it using the SHORT FILE NAME and the DEL command like:

DEL XXXXXX~X

That's it!
0
 
LVL 22

Expert Comment

by:Adam Leinss
ID: 7082042
If that doesn't work, try running scandisk, it _should_ pick it up.

del xxxx*.* may be something else to try
0
 

Author Comment

by:stelogic
ID: 7082150
it doesn`t have a short name and scandisk didn`t find it any other ideas....

cheers .

stelogic
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 22

Accepted Solution

by:
Adam Leinss earned 50 total points
ID: 7082189
Try Ztreewin and see if you can manipulate the file that way: http://www.ztree.com/html/ztreewin.htm

0
 

Author Comment

by:stelogic
ID: 7082417
you da man,,,

cheers

stelogic
0
 

Author Comment

by:stelogic
ID: 7082421
kind regards

stelogic
0
 

Expert Comment

by:Jodeye
ID: 7082689
thanks for the exchange... had the same prob.

not worthy,
jodeye
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application Deployment - Simple 7 652
Software to report on NTFS folder permissions? 2 491
Dell PowerEdge raid drive replacement 13 508
schedule script execution in windows 2000 3 138
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 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