How would I get the actual directory path of an IIS application (virtual folder) using WMI?
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Inheritance impossible in Windows Runtime Componen
Here's a purely .Net option that should be returning the same result as Isalamon's answer.
From my WmiMacros
Sample usage (replace
strComputer
)Far far more detailed usage:
detailed implementation code:
Use Scriptomatic V2 tools to view more samples like that :
Sure, it's 3 years old, but it's a nice little question. If the specification the solution must use .NET includes PowerShell, then this will do the trick. Someone may want to know some day:
The resulting object will contain one property named, "Path".