如何用SQL的xp_cmdshell得到IIS的虚拟目录结构?

我们知道通过SQL的xp_cmdSell可以执行外部程序,那么如何通过xp_cmdshell得到IIS的虚拟目录结构呢?

---------------------------------------------------------------

http://zwills.xxiyy.com/mikespook/articlelist.asp?id=20
---------------------------------------------------------------

你要的是这个吗?

exec master.dbo.xp_cmdshell 'cscript c:\inetpub\adminscripts\disptree.vbs -a IIS://LocalHost/w3svc --NoRecurse'

Published At
Categories with Web编程
comments powered by Disqus