How to read an IIS 6 Website's Directory Structure using WMI?

匆匆过客 提交于 2019-12-03 08:35:19

Never mind. i got it myself. If the directory structure is on local system the System.IO.DirectoryInfo is what is needed. Using remoting the same can be used for remote server as well.

Reference: http://msdn.microsoft.com/en-us/library/system.io.directoryinfo.aspx

If WMi has to be there then Win32_Directory is the class which should used in query:

"Select * from Win32_directory where drive ='"+ DriveLetter +":' and Path ='%" + MyPath + "%'";

Reference: http://msdn.microsoft.com/en-us/library/aa394130(VS.85).aspx

Have you looked at the Web Deployment Tool?

http://www.iis.net/expand/WebDeploy

Ability to package ACLs, COM, GAC and registry settings.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!