That looks like it might require a "share" named "CDrive", so it's not quite
what I'm looking for. Here's the deal, I want to get a remote computer
directory listing just like Microsoft SQL Server Enterprise Manager does
when you click on the "Attach Database" function -- no shares required.
Anyone got any ideas?
Thanks,
Michael C.
"Simon Smith" <si*****@community.com> wrote in message
news:b2******************************@ghytred.com. ..
using System;
using System.IO;
namespace ConsoleApplication4 {
class Class1 {
[STAThread]
static void Main(string[] args) {
DirectoryInfo di = new DirectoryInfo("\\\\barney\\CDrive");
foreach (FileInfo fi in di.GetFiles()) {
Console.WriteLine(fi.FullName);
}
Console.ReadLine();
}
}
}
Is that what you want?
Simon Smith
simon dot s at ghytred dot com
http://www.ghytred.com/NewsLook - Usenet for Outlook
On 10 Jun 2004 22:29, "Michael C" wrote:OK. Is there a Win32 API function I can call to retrieve a remote
computer's directory?
Thanks,
Michael C
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:u6**************@TK2MSFTNGP11.phx.gbl... The UNC path should work for you as long as you have permission
--
W.G. Ryan, eMVP