randall2nd
Programmer
I am new to C# and .NET and I am tring to display a listing of files and some information on each file from a specified directory.
I need the file name, create date, modified date, and owner name. The first three are easy, its the last that I have no clue how to get within the .NET frame work. I know I can get it by using methods outside .NET, but I need to know if its possible and how to get it using .NET.
I am currently using the DirectoryInfo object and looping over the results from the GetFileSystemInfos() method. In the loop I am grabbing the five pieces of data needed and putting them into a ListViewItem as a string[].
Is there a more effeceint method?
Any help/advice would be appreciated.
Most effeceint way to display info?
How do I get the owner of a file?
Randall2nd
I need the file name, create date, modified date, and owner name. The first three are easy, its the last that I have no clue how to get within the .NET frame work. I know I can get it by using methods outside .NET, but I need to know if its possible and how to get it using .NET.
I am currently using the DirectoryInfo object and looping over the results from the GetFileSystemInfos() method. In the loop I am grabbing the five pieces of data needed and putting them into a ListViewItem as a string[].
Is there a more effeceint method?
Any help/advice would be appreciated.
Most effeceint way to display info?
How do I get the owner of a file?
Randall2nd