Reputation: 521
can we check folder permission on remote machine using c#.
Upvotes: 0
Views: 467
Reputation: 4851
Assuming the account used to execute your code has access to those folders then, yes.
You can use the GetAccessControl method of a DirectoryInfo instance.
If the folder isn't shared, you can always use the C share: \\somemachine\C$\program files
Upvotes: 1