![]() Using (var shellShortcut = new ShellShortcut(newShortcutPath) T.InvokeMember("Save", BindingFlags.InvokeMethod, null, lnk, null) Object lnk = t.InvokeMember("CreateShortcut", BindingFlags.InvokeMethod, null, shell, new object) ![]() Object shell = Activator.CreateInstance(t) Var lnk = shell.CreateShortcut("sc.lnk") NET 4.0) Type t = Type.GetTypeFromCLSID(new Guid("72C24DD5-D70A-438B-8A42-98424B88AFB8")) //Windows Script Host Shell ObjectÄynamic shell = Activator.CreateInstance(t)
0 Comments
Leave a Reply. |