Click here to Skip to main content
15,796,456 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi ,
I would like the simplest example of using DirectoryInfo (or something similar) to view the files and folders on another computer's drive. The other computer is on the same local network as my computer, but requires credentials other than my own.

The program code that will use DirectoryInfo() will run on my local machine, and I am logged into my local machine as, say, user "A".

The program will attempt to access folders and files on the other computer's drive. The other computer doesn't allow access by user "A", but does allow access by user "B". I know the userID and password for user "B" and would like to use that in my program code, along with the DirectoryInfo() object, to view the files on the other computer.
can anyone help me , very tanks
Posted

1 solution

Looks like this will help:
Directory.GetCurrentDirectory Method[^]
Related reads:
Directory Methods[^]
 
Share this answer
 

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