"Icacls.exe"명령을 사용하여 폴더에 액세스하는 사용자 목록을 가져올 수 있습니다. C#에서는 다음과 같이 할 수 있습니다.
// Start a process and with the folder path as parameter
string folder = @"N:\Documents\Files\folderName";
ProcessStartInfo oInfo = new ProcessStartInfo();
oInfo.FileName = "Icacls.exe";
oInfo.Arguments = folder;
oInfo.RedirectStandardOutput = true;
oInfo.UseShellExecute = false;
Process oProcess = new Process();
oProcess.StartInfo = oInfo;
oProcess.Start();
// Redirect the result in a string
string result = oProcess.StandardOutput.ReadToEnd();
Console.WriteLine(result);
Console.Read();
// Do some stuff with the string
실제로 어떤 코드를 시도 했습니까? – MethodMan
나는 문자 그대로 문자를 복사하여 Google에 붙여 넣었고^ – FrankerZ
찾았습니까? –