How to delete files with long file names in vista ?

When i try to delete files that have very long file names in windows vista ultimate 64bit, a dialog box come up and says

"The distination file name will become bigger than the system allows. Move to a location with a shorter pathname OR rename the file to a shorter name before moving to this location"

And then I think I will try to rename the file to a shorter name before I will delete it. But when I right click the file, Im not even given the option to 'rename' it, as you normal can do with eany other file with a normal leagth name.

My quistion is: How do i delete the files?
SabutaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnGerhardtCommented:
Cut and paste the file into the route of your C drive and then delete it from there.. It should then successfully delete.
If there are multiple files and then create a folder in the root of your C drive and then cut and paste all of the files in there. Then you can delete the folder..
0
Michael PfisterCommented:
First try to hold the left shift key while deleting the file. This should delete the file right away instead of sending it to the recycle bin.

If this doesn't help open a command prompt (Accessories). Navigate to the folder with the file(s) by

cd "\This is\your folder"

then issue a dir /x /p

this lists all files together with their corresponding  short names. Now you can delete such a file by its short name, i.e.

del "SHORTN~1.TXT"

Hope it helps
0
SabutaAuthor Commented:
HohnGerhardt = Thanks, but the option, copying, deleting or cut does not even come up.
mpfister = Please explain it to me a little better, im not sure what you want me to do. I have now open the dos promt and have navigated to the location as you see below.
C:\ProgramData\Microsoft\SysIni\AppDDATA\System filer\64bit system filer\SystemI
ns\BitSec64\65655xp\SysUp>
What to do now ?
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Michael PfisterCommented:
Now enter

dir /x /p

you will get a directory listing like this:

:
21.03.2006  16:17        12.337.752 WINDOW~1.EXE Windows2003_server_rktools.exe
:

for example: WINDOW~1.EXE is the corresponding short file name for the long file name Windows2003_server_rktools.exe

Now you may use del to delete the file by entering:

del WINDOW~1.EXE
0
24playCommented:
if you right click and do properties does it let you rename in there?
0
SabutaAuthor Commented:
Ahh, okay now I see.. But sorry it does not work. Reson is that it shows that the directory is empty, but is really isnt.. I have also tryed to go to the location and enter 'del *.*' and it is still not empty. it is like vista can't access the files at all.. And when I try to go a directory up and trying to delete the entire directory where the files are located using this command 'rd SysUp' it says that the 'directory is not empty' so the directory cant be removed.
0
SabutaAuthor Commented:
24play= no the 'properties' does not even come up as a option when right clicking
0
snusgubbenCommented:
Use Posix: http://support.microsoft.com/kb/120716

i.e. to recursively remove a folder:  rm -r "//C/Program Files/BadFolder"

SG
0
Michael PfisterCommented:
use

dir /x /p /ah

to display hidden files.
0
SabutaAuthor Commented:
No one here ware able to help me on this issue. Non of it worked. So please if someone have another idear, please do tell>-)
0
Michael PfisterCommented:
Sabuta,

what was the output of

dir /x /p /ah

or you can try

dir /x /p /as
0
SabutaAuthor Commented:
mpfister
The files are not hitten.
0
Michael PfisterCommented:
I don't understand. If the files are not visible they have either hidden or system or both attributes set.

Try

rd SysUp /q/s
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SabutaAuthor Commented:
mpfister. Thanks the 'rd SysUp /q/s' worked>-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Vista

From novice to tech pro — start learning today.