Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have remote access to one of machine(Windows) with Admin privileges.Is it possible to get the list of files from specified directory of that machine using c#.
Note:The directory is not a shared path.

Thanks
Posted
Updated 5-Oct-15 19:29pm
v3

1 solution

If you are not running your application with admin privileges or at least as a user who has access to this file share, you will not be able to read these files.
 
Share this answer
 
Comments
Member 11844667 6-Oct-15 1:31am    
Abhinav Thanks..I have admin privileges to that machine is it possible to access the folders.
Abhinav S 6-Oct-15 2:06am    
If it is not shared then maybe not.

Try something like \\myserver\C$\foo\bar\.
Note the drive name and the $.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900