directoryinfo
Sorting files from directoryinfo by date in asp.net
how can I sort (not filter) directoryinfo files by date (oldest to recent) ? I am using asp.net and 开发者_如何学运维visual studio 2008The same as @DaRKoN_ in vb.net:[详细]
2023-04-12 17:23 分类:问答ASP.Net DirectoryInfo records to be sorted and filtered
I want to meger two lines of code but I can\'t seem to figure it out. Dim filterFiles As FileInfo() = New DirectoryInfo(sPath).GetFiles().Where(Function(x) x.LastWriteTime >= (dtStartDate) AndAlso[详细]
2023-04-12 10:07 分类:问答Filter DirectoryInfo files by date in asp.net
I am populating a datagrid control using files in a specified path (DirectoryInfo). I would like to filter the files based on a user specified date range (start date & end date).[详细]
2023-04-11 23:58 分类:问答Mono DirectoryInfo for network share
I wrote a quick console app in VS2010 to copy a file from a network location to a specified location on disk. The program works fine on Windows but when I copy it into the Mac and execute it against t[详细]
2023-04-02 15:46 分类:问答C# code to set a remote share to inherit permissions from its parent directory
I have two machines, call them client and server, in a Windows domain. The server has a shared directory which can be accessed from the client machine. I want to run a C# application on the client whi[详细]
2023-04-02 08:04 分类:问答Find if a directory has a parent
private void anotherMethod() { 开发者_开发知识库DirectoryInfo d = new DirectoryInfo(\"D\\\\:\");[详细]
2023-04-01 23:27 分类:问答.NET Junction Directories and DirectInfo issues
I am trying to access information under C:\\Users\\Public\\Documents\\ which displays as C:\\Users\\Public\\Public Documents\\ on explorer.Is there 开发者_开发百科a way to be able to access the Direct[详细]
2023-03-20 16:32 分类:问答Can I resolve a DFS path with DirectoryInfo?
Is there a way to resolve a DFS path directly with DirectoryInfo? I found this answer: How can I get an active开发者_高级运维 UNC Path in DFS programatically... is this really my only option?Correct,[详细]
2023-03-09 22:21 分类:问答Problem setting file system access rule
In my app on local network, any user should create a directory on shared folder using this code. test1 is the name of one开发者_C百科 of the user\'s folder for example.[详细]
2023-03-04 03:45 分类:问答Using DirectoryInfo with a UNC path
I\'m trying to DirectoryInfo to verify whether a UNC path exists, however DirectoryInfo consistency fails over and says the folder doesn\'t exist, when I can confirm it does in Windows Explorer.[详细]
2023-02-26 04:44 分类:问答