none
Hoe To get the folder information of remote servers RRS feed

  • Question

  • Hi,

    I want to get the size of a Folder which is in remote machine. 

    I need program which will give me folder size information periodically. 

    I tried the following but failed as it does not give any information of the folder except name.

    ManagementScope oMs = newManagementScope(strNameSpace, oConn); ObjectQuery oQuery = newObjectQuery(string.Format("SELECT * FROM Win32_Directory Where Drive='{0}' AND Path='{1}' ", Drive, Path)); ManagementObjectSearcher oSearcher = newManagementObjectSearcher(oMs, oQuery); ManagementObjectCollection oReturnCollection = oSearcher.Get();

    Thanks in advance

    regards

    satish

       

    Friday, November 15, 2013 1:10 PM