Pages
Categories
Old Posts
- November 2011 (1)
- June 2011 (1)
- March 2011 (1)
- January 2011 (1)
- November 2010 (3)
- May 2010 (1)
- March 2010 (1)
- February 2010 (1)
- December 2009 (4)
- November 2009 (1)
- October 2009 (1)
Category Archives: VB.NET
How to run Xcopy with elevated privileges
A COM class to run xcopy as an admin.
How to run code as another user
A COM class that enables code execution under a different user identity. It makes it really easy to run code with elevated priviledges in eg VBA as well as NET.
Open a file in VB.NET
To open a file in it’s default application all you need is one line of code: System.Diagnostics.Process.Start("www.mysite.com") or System.Diagnostics.Process.Start("N:\myfile.pdf")
Logging: how to get Class and Method names