How do I create a Shortcut on the Desktop from VB.NET or C#.Net? I also need to pass a user id and password so that I can launch the program and log it on to the database without the user having to login. In VB6, you had to use the Windows Scripting DLL. In .NET, since this facility has not been moved to the Framework, you still must use the same approach through Com Interop.
To get started creating a Shortcut on the Desktop, you must include a Reference to the Windows Scripting Library. You do this by right-clicking on the References folder in the Solution Explorer. Select the Add Reference menu. From the Add Reference dialog, click the Com Tab and select the Windows Scripting Host Object Model and click the Add button.