Link to home
Start Free TrialLog in
Avatar of stelogic
stelogic

asked on

re-naming long file name.

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
Avatar of jhance
jhance

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!
Avatar of Adam Leinss
If that doesn't work, try running scandisk, it _should_ pick it up.

del xxxx*.* may be something else to try
Avatar of stelogic

ASKER

it doesn`t have a short name and scandisk didn`t find it any other ideas....

cheers .

stelogic
ASKER CERTIFIED SOLUTION
Avatar of Adam Leinss
Adam Leinss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you da man,,,

cheers

stelogic
kind regards

stelogic
thanks for the exchange... had the same prob.

not worthy,
jodeye