Top "Directoryinfo" questions

The .NET DirectoryInfo object contains detailed information about a directory on the filesystem.

C#: How to logon to a share when using DirectoryInfo

If I want to instantiate a DirectoryInfo object with an UNC path DirectoryInfo myDI = new DirectoryInfo (@"\\server\share"); how can …

c# unc directoryinfo
c# copying files from source folder to target folder

Source and Target have the same subdirectories like this : c:\fs\source\a\ c:\fs\source\b\ c:\fs\target\…

c# directory copy-paste directoryinfo system.io.fileinfo
DirectoryInfo throws "Argument Exception: The path is not of a legal form" for the correct path

When I use DirectoryInfo with a specific path (say @"C:\") in my ASP.NET MVC application, it returns ok but …

c# directoryinfo
.NET - Check if directory is accessible without exception handling

I need to go through various directories on the computer (via DirectoryInfo). Some of them aren't accessible, and UnauthorizedAccessException occurs. …

.net directoryinfo
Get full path to file while debugging using IIS Express

I have a .NET application that I am trying to debug and part of my application loads a file from …

c# .net iis iis-express directoryinfo
C# How can I solve limitations when using DirectoryInfo?

When I recursive through some folders and files, I encounter this error: The specified path, file name, or both are …

c# .net directoryinfo
C# - How to use DirectorySecurity.SetOwner() ? I'm having troubles

I'm having troubles figuring out the SetOwner() method. In my case, I've created an user in Active Directory by code, …

c# directoryinfo
Get directories of remote Server

I'm trying to get all directories of a remote server. For example: path: "\\Servename\folder" - it works! path: "\\Servename" …

c# directoryinfo getdirectories
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 …

c#-4.0 directoryinfo
C# Access to the path 'C:\Documents and Settings\' is denied

I'm using a simple DirectoryInfo to grab all directories on the root on the C drive. However, I'm running under …

c# directoryinfo