• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 870
  • Last Modified:

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?
0
Sabuta
Asked:
Sabuta
1 Solution
 
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 
SabutaAuthor Commented:
mpfister. Thanks the 'rd SysUp /q/s' worked>-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now