How to copy desktop icons using the command line ?

  • Thread starter Thread starter Zak Khalil
  • Start date Start date
Z

Zak Khalil

Hi, We are trying to use the command line to copy some desktop icons to the
folder c:\documents and settings\all users\desktop. Is there a way to do
that ?
Thank you,
 
Zak Khalil [[email protected]] posted:
Hi, We are trying to use the command line to copy some desktop icons
to the folder c:\documents and settings\all users\desktop. Is there a
way to do that ?
Thank you,

Sure - just perform a normal copy command:

copy whatever.lnk "c:\documents and settings\all users\desktop"

Note the quotes. Also, set up the shortcut (whatever.lnk) first on a
computer where the target exists, then use that LNK file in your copy
command.

ws
 
Zak Khalil said:
Hi, We are trying to use the command line to copy some desktop icons to the
folder c:\documents and settings\all users\desktop. Is there a way to do
that ?
Thank you,
If it it not only one pc, you might consider using the environment var
%ALLUSERSPROFILE% and create new shortcuts with makescut.exe or
shortcut.exe on the destination pc. Depending on the language and the
drives used that folder may have different names as you can see from my
screen copy.

====screen copy==========================================
C:\test>set all
ALLUSERSPROFILE=E:\Dokumente und Einstellungen\All Users
====screen copy==========================================

Makescut link http://www.scriptlogic.com/eng/products/scriptingtoolkit/
Also check out Marty List's cool tool shortcut.exe
<http://www.optimumx.com/download/>

HTH
 
Back
Top