Author Topic: Exception Cannot create file "". The filename or extension is too long  (Read 5474 times)

Offline pwrmngr

  • Contributor
  • ***
  • Posts: 40
Hi there , after updating to the new AB I am getting the error  "Exception Cannot create file "". The filename or extension is too long".  The file name is "a long string of sausages".

Windows 7 Pro
COMODO Firewall
567GB free space on drive and tried downloading to different drive.
16GB Ram

http://members.shaw.ca/yz426f/error.png
« Last Edit: February 14, 2010, 04:29:14 am by Hecks »

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Exception Cannot create file "". The filename or extension is too long
« Reply #1 on: February 14, 2010, 04:28:28 am »
This is not a bug, but a limitation with Windows.  File path must be less than 256 characters (ish).  Search the forum for many discussions of this.  Solutions: shorten NZB name, use short folder names in drive root, etc etc.

Quote
Maximum Path Length Limitation

In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is "D:\<some 256-character path string><NUL>" where "<NUL>" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.)
http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx
« Last Edit: February 14, 2010, 04:32:24 am by Hecks »

Offline pwrmngr

  • Contributor
  • ***
  • Posts: 40
Re: Exception Cannot create file "". The filename or extension is too long
« Reply #2 on: February 14, 2010, 06:47:53 am »
Thanx huge :)