G
Guest
I had previously written a program to set the attributes of all files in a
folder. The program uses the Windows API functions FindFirstFile and
FindFindNextFile to process the files in a specified folder and its
sub-folders. By specify the prefix “\\?\UNC\†or “\\?\†files or folders
with names longer than 260 characters are processed. I have now written a
VB.NET 2003 equivalent using.NET Framework version 1.1. The program uses the
Directory class methods GetDirectories and GetFiles, and the FileInfo and
FileAttributes classes to do exactly the same thing. However it appears that
these .NET Framework classes do not accept the long file name prefix in the
path so the program cannot set the attributes of files or folders with long
names.
Is there any other method for returning FileInfo objects for files with long
names other than calling the FindFirstFile and FindFindNextFile from the
VB.NET program
folder. The program uses the Windows API functions FindFirstFile and
FindFindNextFile to process the files in a specified folder and its
sub-folders. By specify the prefix “\\?\UNC\†or “\\?\†files or folders
with names longer than 260 characters are processed. I have now written a
VB.NET 2003 equivalent using.NET Framework version 1.1. The program uses the
Directory class methods GetDirectories and GetFiles, and the FileInfo and
FileAttributes classes to do exactly the same thing. However it appears that
these .NET Framework classes do not accept the long file name prefix in the
path so the program cannot set the attributes of files or folders with long
names.
Is there any other method for returning FileInfo objects for files with long
names other than calling the FindFirstFile and FindFindNextFile from the
VB.NET program