Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    This seems to be ok, and I have seen this already.. I just had something else in mind... But if this allows me to do that and there's no better way, I'll try and use it i guess. Commented Aug 2, 2013 at 21:23
  • 4
    Also "Embed Interop Types" should be set to false when referencing the Windows Scripting Host. Otherwise you'll get The type 'IWshRuntimeLibrary.WshShellClass' has no constructors defined
    – Halil
    Commented Dec 1, 2014 at 18:11
  • 4
    Add Reference > COM > Windows Script Host Object Model
    – Doug
    Commented Jan 21, 2015 at 3:37