How could i translate this in c#?
Set WshShell = WScript.CreateObject( "WScript.Shell" )
Thx. At what is this used? And also what is the library i have to include in c# in order to work?
There are still some things more easily accomplished with the Shell objects for Scripting. You can get access from .NET using
var sh = (Shell32.IShellDispatch4)Activator.CreateInstance(
Type.GetTypeFromProgID("Shell.Application"));
(add a reference to Shell32.dll to have the interop classes created)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With