Click here to Skip to main content
15,608,935 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two pc that is connected with Lan, i want to create the C# Window Application that can search the file from second PC when i put the IP address and The file name in Window Application on first PC
Sandeep Mewara 26-Apr-13 3:10am    
Ok. And your question is? Where are you stuck?

1 solution


you can make you of DirectoryInfo.GetFiles method. refer the MSDN article.
DirectoryInfo.GetFiles Method (String)[^]

but pass the network path of the second machine for the DirectoryInfo class
(Ex: \\IP_Address\ShareFolder)

hope it helps.
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