Click here to Skip to main content
13,143,774 members (31,731 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I am trying to make a console application in which I am trying to get the drive information from the local machine using System.IO. Now I want to get the same information for a server from my local machine, how do I do that? How do I connect to it? and After Connection how do I access its System.IO? I know one thing that the servers can be accessed through UNC path(\\servername\name\dir\) but If I want to access the server disk spaces(using System.IO) and error logs how do I do that?
I already have username and passwords for it.
Any help on this is most welcome.
Posted 25-Jun-13 9:02am
Updated 25-Jun-13 9:35am
Mahesh Bailwal 26-Jun-13 2:15am
Please share code you have used for local machine.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The item you need is called Windows Management Instrumentation (WMI), not System.IO. See e.g.[^]
GB_1114 26-Jun-13 15:03pm
HI Bernhard, thanks lot for this, I'll implement this and see if it works, on the msdn website it says that "There are no special requirements to build this sample. It uses .NET 4.0"..I have 4.5, I hope it works on that too?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 26 Jun 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100