Home Support FAQ Software  
Site Map
FAQ for AutoRun Wizard v2.05    AutoRun Wizard

Question  How can I copy a shortcut to my application on to the users Desktop?

Within AutoRun Wizard there is no option create a shortcut to your application and place it on the users desktop. However, some of our savvy customers have created a VB Script file that achieves the same thing.

Simply open notepad and type in this:

set WshShell = WScript.CreateObject("WScript.Shell" )
strDesktop = WshShell.SpecialFolders("AllUsersDesktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "\shortcut name.lnk" )
oShellLink.TargetPath = "c:\application folder\application.exe"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "c:\application folder\application.ico"
oShellLink.Description = "Shortcut Name"
oShellLink.WorkingDirectory = "c:\application folder"

Note: Modify lines 3, 4, 6, 7, 8 (bolded) to change this to your specific needs.

Save the file as addshortcut.vbs (make sure there is not a .txt extension and it is only .vbs)

Then copy the newly created vbs file to your Base Folder. Once in your Base Folder you can auto launch the vbs file as part of your autorun. When the user inserts the cd, the shortcut will be copied to their desktop.

Back to the questions for AutoRun Wizard
Download more software like AutoRun Wizard. Search the FAQ for your answer.

Rating: Top Rated!Top Rated!Top Rated!Top Rated!Top Rated! (16 votes) Rate this answer Rate this answer

Additional Information Additional Information Printer Friendly Printer Friendly
Views: 37,277 Add to Favorites Add to Favorites
Added: Sep 9, 2010