

I present a small hybrid script to create a desktop shortcut.Īnd you can of course modifie it to your purpose. Note that MyApp48.bmp is a 48x48 pixel image.Įcho Set oWS = WScript.CreateObject("WScript.Shell") > CreateShortcut.vbsĮcho sLinkFile = "%userprofile%\Desktop\MyApp.lnk" > CreateShortcut.vbsĮcho Set oLink = oWS.CreateShortcut(sLinkFile) > CreateShortcut.vbsĮcho oLink.TargetPath = "C:\MyApp\MyApp.bat" > CreateShortcut.vbsĮcho oLink.WorkingDirectory = "C:\MyApp" > CreateShortcut.vbsĮcho oLink.Description = "My Application" > CreateShortcut.vbsĮcho oLink.IconLocation = "C:\MyApp\MyApp48.bmp" > CreateShortcut.vbs I wanted the shortcut to appear on the desktop.īut I also needed to set the icon, the description, and the working directory.

I didn't try mklink, since I didn't want to mess with permissions. The JScript solution gave me syntax errors. The PowerShell solution ran, but no shortcut appeared. It may vary slightly or significantly with other versions or products.Rohit Sahu's answer worked best for me in Windows 10. Information in this article applies to computers running the Windows 8 operating system.You can then click a location - such as a folder - and then click "Copy" or "Move" to copy or move the item. If you don't see a destination you like, click "Choose Location" to view a dialog box that displays your computer's contents.

If you'd like to copy or move a file to a new location, select it in File Manager and click "Move To" or "Copy To." A menu opens that enables you to select a destination.You can then type a new name in the text box that appears. If you'd like to rename the shortcut without using right-click, click the shortcut to select it and then click the ribbon's "Rename" button. After you paste a shortcut, File Explorer appends "Shortcut" to the end of its name.There is no need to navigate to another folder before clicking that button. If you’d rather create your shortcut in the same folder as the source item, click “Paste Shortcut” after you click an item to select it.
