Click here to Skip to main content
15,901,284 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Ghosts in My House Pin
rguilmette7-Mar-17 9:47
rguilmette7-Mar-17 9:47 
GeneralRe: Ghosts in My House Pin
Bassam Abdul-Baki8-Mar-17 5:56
professionalBassam Abdul-Baki8-Mar-17 5:56 
GeneralRe: Ghosts in My House Pin
Mark_Wallace7-Mar-17 10:45
Mark_Wallace7-Mar-17 10:45 
GeneralRe: Ghosts in My House Pin
patbob8-Mar-17 4:56
patbob8-Mar-17 4:56 
GeneralRe: Ghosts in My House Pin
Bassam Abdul-Baki8-Mar-17 5:58
professionalBassam Abdul-Baki8-Mar-17 5:58 
GeneralWin10 FileSystem: File / Path too long Pin
raddevus7-Mar-17 4:32
mvaraddevus7-Mar-17 4:32 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Brisingr Aerowing7-Mar-17 4:42
professionalBrisingr Aerowing7-Mar-17 4:42 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus7-Mar-17 5:07
mvaraddevus7-Mar-17 5:07 
Brisingr Aerowing wrote:
Win32 file handling functions allow a few thousand characters in paths

That's interesting. How does the file system handle that*? How does it then, in turn, display those in File Explorer? Well, maybe that's the point, File Explorer doesn't quite handle those. Which doesn't exactly make sense why MS would not have File Explorer set up for that when they are the creators of the
API file handling functions.

Also, .NET uses Unicode by default, right? But I'm not sure you can actually create a file/path that is longer than 260 (max_path), right? This is interesting to me.

Edit
I also just found this which seems to be a new revelation:
Microsoft removes 260 character limit for NTFS Path in new Windows 10 Insider Preview - MSPoweruser[^]
Was it ever possible to create file / path longer than 260? I'm not sure.

Edit 2
You are right.
Just read this in CreatFile docs at :CreateFile function (Windows)[^]

Quote:
In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see Naming Files, Paths, and Namespaces.
For information on special device names, see Defining an MS-DOS Device Name.
To create a file stream, specify the name of the file, a colon, and then the name of the stream. For more information, see File Streams.
Tip Starting with Windows 10, version 1607, for the unicode version of this function (CreateFileW), you can opt-in to remove the MAX_PATH limitation without prepending "\\?\". See the "Maximum Path Length Limitation" section of Naming Files, Paths, and Namespaces for details.


*I remember how this is handled with long names versus 8.3 with the tilde-names, etc.

modified 7-Mar-17 11:16am.

GeneralRe: Win10 FileSystem: File / Path too long Pin
Dan Neely8-Mar-17 2:32
Dan Neely8-Mar-17 2:32 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus8-Mar-17 2:49
mvaraddevus8-Mar-17 2:49 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Mark_Wallace7-Mar-17 5:27
Mark_Wallace7-Mar-17 5:27 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus7-Mar-17 5:36
mvaraddevus7-Mar-17 5:36 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Sander Rossel7-Mar-17 5:31
professionalSander Rossel7-Mar-17 5:31 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus7-Mar-17 5:35
mvaraddevus7-Mar-17 5:35 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Randor 7-Mar-17 9:53
professional Randor 7-Mar-17 9:53 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus7-Mar-17 14:25
mvaraddevus7-Mar-17 14:25 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Randor 7-Mar-17 15:30
professional Randor 7-Mar-17 15:30 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Mark_Wallace7-Mar-17 21:13
Mark_Wallace7-Mar-17 21:13 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus8-Mar-17 2:45
mvaraddevus8-Mar-17 2:45 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Randor 8-Mar-17 8:23
professional Randor 8-Mar-17 8:23 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus8-Mar-17 8:45
mvaraddevus8-Mar-17 8:45 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Randor 8-Mar-17 9:56
professional Randor 8-Mar-17 9:56 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus8-Mar-17 10:15
mvaraddevus8-Mar-17 10:15 
GeneralRe: Win10 FileSystem: File / Path too long Pin
Randor 8-Mar-17 11:12
professional Randor 8-Mar-17 11:12 
GeneralRe: Win10 FileSystem: File / Path too long Pin
raddevus8-Mar-17 11:28
mvaraddevus8-Mar-17 11:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   504 votes