Copy a Shotcut from a directory to the deskto

December 4, 2010 at 17:51:04
Specs: Windows 7, Intel I5 - 8 gig
Using a .bat command line, I need to copy a shortcut of the file C:\BFAB\Lookup.jar to the desktop. I'm able to copy the file, but don't have a clue how to copy the shortcut.

See More: Copy a Shotcut from a directory to the deskto

Report •


#1
December 5, 2010 at 00:00:20
A shortcut is a file with the extension .lnk so you can copy it in the usual manner:

Copy Shortcutname.lnk "c:\documents and settings\username\desktop\"

You will,of course, have to check the paths\filenames to suit your setup.

Good luck.

Did you Google for an answer before asking the question?


Report •

#2
December 5, 2010 at 07:03:37
Thanks so much. Your answer did the trick.

JD Walsh


Report •

#3
December 5, 2010 at 15:13:46
Someone should probably point out a .JAR file is not a shortcut. It's a Java executable file. If your program is expecting to be somewhere that's not your Desktop, it'll fail.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question