Re: Error Message: "The File Name is Not Valid or Too Long...."



YourWadeness wrote:
This is my issue: I download a file to my desktop from a website.
I, then, proceed to name that file using only valid characters. The
file name is usually only 55 to 60 characters long. But when I try
to move the file into a more convenient location (folder) on my
hard drive, I receive the following error message: "The file name
is not vaild or too long. Specify a different file name." I, then,
have to proceed to shorten the file name to something really
unrecognizable to me, and only then will the file be accepted into
the destination folder.

I never had this problem before. It only started recently (2009).
I've had Windows XP since 2001.

Why is this happening? Can anyone please help me?

*Only* 55-60 characters long? *grin*

Where is the "more convenient location (folder)" you speak of?

Essentially, when you save the file to your desktop, the full patch to that
file is - in a default installation of Windows XP and with the shortest
username I can think would be possible - already 30 characters in - minimum.
That is not counting the drive letter and slashes or the filename itself.
You really want to try and keep full path, including filename, below 255
characters - or there could be unexpected behavior.

Path to your Desktop...
C:\Documents and Settings\<username>\Desktop

So - for example - you are moving it to your "My Music" folder, perhaps also
under an "Album Name" folder which is under an "Artist Name" folder...

C:\Documents and Settings\<username>\My Documents\My Music\<Artist
Name>\<Album Name>\filename of your choice.mp3

People seem to really like the fact that they can now name things more than
8 characters with a 3 character file extension. Sure - I understand - it
makes things easier to identify later. However - what many do not take into
account is all the directories paths and such that add to the length of the
filename in order to do anything to that file. So they end up with
ridiculously long paths with ridiculously long filenames - and then they
have trouble using the very files they now know what they are because of the
name being not just recognizable - but exactly what it is.

Some abbreviation is good.

If you want less abbreviation, download and store your long filename files
in a C:\1\ directory... (Or in the root of C or of another drive.)

My suggestion... Keep your filename under 31 characters (not including the
extension/dot, path.)

"a filename under 31 characters.txt"

Keep your paths short as well.

"A filename with sixty characters in it would look like this.txt"
(Again - not counting the extension/dot.)

If you need an entire sentence to remember what is in a file - well - you
need to change where you store things. ;-)

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


.



Relevant Pages

  • Re: Word changes and adds characters to file name on opening document
    ... Shorten the folder names in the filepath and rename the document to the ... Manually enter the filename into the header, ... I don't know if spaces are recorded as single characters or as ...
    (microsoft.public.mac.office.word)
  • RE: open workbook using wildcard
    ... You could also prompt the user for the filename using ... Dim FName As String ... Dim Folder As Object ... The first 4 characters remain constant. ...
    (microsoft.public.excel.programming)
  • Re: determine default filename encoding
    ... > Suse tech support for the way filename characters are represented, ... Characters are characters - just bytes. ... Then if that coding differed from the LANG coding ... filenames that were written in encoding X as they were written, ...
    (comp.os.linux.setup)
  • Re: unix filename restriction
    ... underscore _ and the dot. ... You could use other characters, ... never met a *human* defined path of more than 80 chars (most of the ... If you want to be very sure, limit your filename to the DOS limit of 8 ...
    (comp.os.linux.development.apps)
  • Re: Cannot delete files
    ... There HAS to be an 8.3 filename! ... I've not been brave enough to tell it Yes on THIS folder, ... characters don't look quite the same in this email font; ... but the SFN was "NOD~1.EE". ...
    (microsoft.public.windowsxp.perform_maintain)

Loading