开发者

How do I list a computer's remotely shared files using C#?

开发者 https://www.devze.com 2023-02-17 01:21 出处:网络
How do I list a computer\'s remotely shared files using C#? Could someone help me with this? [开发者_开发百科Update]: Done it by exe \"NET VIEW\" command in C# code finally.I\'d look at the Win32_Sh

How do I list a computer's remotely shared files using C#?

Could someone help me with this?

[开发者_开发百科Update]: Done it by exe "NET VIEW" command in C# code finally.


I'd look at the Win32_Share WMI class. If you haven't used WMI from C# before, this codeproject article should show you how to get started: Howto: (Almost) Everything in WMI via C# - Part 1: Registry

This Technet article has a sample VBScript for enumerating shared: Enumerating Shared Folders
Just change strComputer in that sample to be the computer you're interested in.

0

精彩评论

暂无评论...
验证码 换一张
取 消