#27404 - 2002-08-20 01:33 PM
Re: creating desktop shortcut on 9x and 2000 PC's
|
Bloem
Fresh Scripter
Registered: 2002-07-16
Posts: 7
|
With the copy command you can copy shortcuts on the desktop.
Make on one computer the shortcuts and put them in a share on the server and then copy them with
shell "%COMSPEC% /c copy \\SERVER\SHARE\*.LNK C:\docume~1\@USERID\desktop /y /q /s"
There is actualy something tricky unde Windows 2000. because the userid can change and you have to look in de c:\document and settings. In my case the username XXX was on seperate systems XXX, XXX.domainname or XXX.000. Depent on XXX already exists on the system.
|
|
Top
|
|
|
|
#27406 - 2002-08-20 02:06 PM
Re: creating desktop shortcut on 9x and 2000 PC's
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
You really should use the Shell Folders Location of the registry..
It is in the same location no matter if it is 9x, NT, 2k, XP for the current user.
code:
$desktop = READVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop") copy "Yourshortcut.LNK" $desktop
If you want to create shortcuts using WSH, have a look at this UDF - WshShortCut - Create shortcuts programatically with WSH . The difference is that an Application shortcut vs. a Browser Shortcut is that they are a .LNK and .URL, respectively.
HTH,
Kent
|
|
Top
|
|
|
|
#27407 - 2002-08-20 02:20 PM
Re: creating desktop shortcut on 9x and 2000 PC's
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jack,
Good suggestion.
Created an FAQ for this - Copy a shortcut to the Desktop, Start Menu, etc.
Thanks!
Kent
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 696 anonymous users online.
|
|
|