Re: Unable opening a file, when filename + path are very long



Hello Trilix,

We also have a lot of times the problems with long file names. The only thing to avoid this is, teach your users to save the content in the file and not in the name of the file.
The maximum lenght is 255 characters INCLUDING the path to the file. But still with shorter names you came in trouble, like you see.

Best regards

myweb
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.



Hi,

We encountered a problem that we couldn't open a specific file on our
fileserver (win2000).

After I renamed the filename to something shorter, it worked. When I
renamed it back to the original length, the problem came back.

I assume this has something to do with a bad namingpolicy an more
specific with the number of spaces used. Just to give you an idea how
long the filename & path is :

Path = L:\Functions\FA\Financial Accounting\General\Rapportering
intern\Rapp Dusseldorf\Actueel\rapp month QTR\rapdudo2007\1qtr
2007\December 2006

Filename = HFM Monthly Financial Statement Upload Template PER 01 2007
Belgium-1steversie.xls

As you can see. Very long with many spaces. Am I correct that the
number of spaces are the bad guys or is it just too long? What is the
best namingpolicy to use?

Thanks,
Jurgen


.



Relevant Pages

  • Re: Length limit for FileName within TransferText?
    ... Do you mean the macro works if you try to export to a path/filename that is shorter, but not with the 144-character one? ... it appears that the length of the path and filename that was coded is too long. ...
    (microsoft.public.access.macros)
  • Re: download counter?
    ... create table counter (filename varchar(100), ... Better then redirecting is to read file in php script, send to browser and write to sql table after a file is complete send. ... This avoid a situation when user cancel download. ...
    (comp.lang.php)
  • Re: Unable opening a file, when filename + path are very long
    ... Excess total path length is. ... fileserver. ... After I renamed the filename to something shorter, ... I assume this has something to do with a bad namingpolicy an more specific ...
    (microsoft.public.win2000.security)
  • Re: How do I do .... in C#?
    ... > public string ReadFile(string Filename) ... > is a lot shorter. ... This is exactly the type of debate I was hoping to encourage. ...
    (borland.public.delphi.non-technical)
  • Re: Why doesnt excel let me have two files of the same name open?
    ... There are programs that use the whole filename to avoid that ... > I don't think any program lets you have 2 identically named files open at the ... Dave Peterson ...
    (microsoft.public.excel.misc)