How to get shared folders/files from the remote system using its ipaddress

Hi to all,
I am running shot of time.. Please help me... or guide me

I have server ip address with me. like (\\server)

i require all the shared folders/files to this system "\\server"

if i open in explorer by keying "\\server" i get all the shared folder in explorer. That concept i require to do in using c#.

How could i get it . Please give guidance..

Expecting your reply soon,

regards,
Sivakumar.KR
[464 byte] By [aviskumar] at [2007-11-19 12:55:23]
# 1 Re: How to get shared folders/files from the remote system using its ipaddress
On any recent version of Windows, you should be able to simply access the share as:

\\ip\share

Assuming that 1) The Windows Firewall isn't blocking it, 2) The file sharing services are listening on that address.
mmetzger at 2007-11-9 1:51:37 >
# 2 Re: How to get shared folders/files from the remote system using its ipaddress
i require those shared folders in my object so that i have to retrieve the actual path of the share name..

Pls. give hot coding using c#.

Regards,
Sivakumar.KR
aviskumar at 2007-11-9 1:52:34 >
# 3 Re: How to get shared folders/files from the remote system using its ipaddress
Pls give your current hot code, maybe we can figure out what is wrong with it.
klintan at 2007-11-9 1:53:35 >
# 4 Re: How to get shared folders/files from the remote system using its ipaddress
I dont have any code regarding this.. i have to do.

by taking "\\ipaddress" as a parameter it should return all the folders of shared one.

this has tobe done automated ..

could anybody give me a quick reply.. so that i helps a lot for me.

rgds,
sivakumar.kr
aviskumar at 2007-11-9 1:54:41 >
# 5 Re: How to get shared folders/files from the remote system using its ipaddress
I think that you need to look at the System.Management library and WMI to do it.

Here is a link to get you started:

http://www.vsj.co.uk/articles/display.asp?id=439

I would have attacked this problem by:

1. Download the Management (WMI) Extensions for Visual Studio .NET 2003 Server Explorer

2. Figure out a bit about the WMI object model and for instance try to determine the WMI path to a server

3. Play around a bit with the System.Management classes

4. Search the net for more information and examples about WMI

However, I am not 100% sure that WMI is the way to go, but it looks promising for what you want to do.

Please share any findings that you do with us.
klintan at 2007-11-9 1:55:37 >
# 6 Re: How to get shared folders/files from the remote system using its ipaddress
Please give me guidance about
How to change a folder as a shared folder by giving a name as a sharename (shfol) so that i can add a files/folders into that path.ie.,
\\ipadd\shfol\ using c#

Please do give me hot code or guidance regarding this.

Regards,
Sivakumar.KR
aviskumar at 2007-11-9 1:56:42 >
# 7 Re: How to get shared folders/files from the remote system using its ipaddress
Hello
I want code to access shared folder from remote system by passing identification of computer . I want the code in vb 6.0 .
pragna at 2007-11-9 1:57:35 >