Deleting files with invalid names

G

Guest

How can I delete files with names that are invalid? Not sure how they got
onto our server, but names like "Procedure to extract data for supply problem
resolution control chart2.doc" which is about 75 characters, but is buried
down several levels result in the following error message "Cannot delete
PROC~1.DOC:Cannot file the specified file".

I think the whole path name is too long, but cannot seem to shorten it enough.
 
P

Pegasus \(MVP\)

DaveK said:
How can I delete files with names that are invalid? Not sure how they got
onto our server, but names like "Procedure to extract data for supply problem
resolution control chart2.doc" which is about 75 characters, but is buried
down several levels result in the following error message "Cannot delete
PROC~1.DOC:Cannot file the specified file".

I think the whole path name is too long, but cannot seem to shorten it
enough.

Try this:
- Open a Command Prompt (Start / Run / cmd {OK})
- Type this command
subst Q: "d:\Some Folder\Some SubFolder\Some SubSubFolder"

Make that folder string suffiently long, then use Explorer or
My Computer to delete the problem file from drive Q:. In
future try to put your information into the file itself instead of
the file or folder names.
 

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