- CreateDirectory fails with error 123 when used with a long path
Just for fun, can you show us one of these paths? Also, what is the volume format (FAT, FAT32, NTFS, etc ) ? Finally, does any single sub-componant of this super-long-path exceed 255 characters (typical, use GetVolumeInformation() to know the exact limitation)?
- Call API GetVolumePathNamesForVolumeName - Error Code 123-VBForums
A pointer to a buffer that receives the list of drive letters and mounted folder paths The list is an array of null-terminated strings terminated by an additional NULL character
- GetVolumePathNameW function (fileapi. h) - Win32 apps
Parameters [in] lpszFileName A pointer to the input path string Both absolute and relative file and directory names, for example, " ", are acceptable in this path If you specify a relative directory or file name without a volume qualifier, GetVolumePathName returns the drive letter of the boot volume
- GetVolumeInformation for network drives when admin returns 0
Mapped network drives are mapped for one user When you connect as a different user, as far as that other user is concerned, the drive doesn't exist If you need several users to access the same network path, use the actual UNC path (" \\server\path ") A mapped network drive is just a convenience for humans If you really need several users to access the mapped network drive, you'll need to
- Retrieving VolumeDetails of WINDOWS Drives - Stack Overflow
Thanks for your reply, but when I declare it char mydrives[] = " A:\\";, in the console I am getting only `C:` which I guess is the wrong path as Error 123 is being returned
|