Page 1 of 1 1
Topic Options
#27403 - 2002-08-20 11:58 AM creating desktop shortcut on 9x and 2000 PC's
Pieman Offline
Fresh Scripter

Registered: 2002-08-20
Posts: 29
HELP..!

I'm new to Kixtart and require help creating a desktop shortcut on 9x and NT/2000 PC's, can this be done and how would I go about doing it?

Pieman [Confused]
_________________________
It takes a human hours to fcuk up what a computer can do in seconds...

Top
#27404 - 2002-08-20 01:33 PM Re: creating desktop shortcut on 9x and 2000 PC's
Bloem Offline
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
#27405 - 2002-08-20 02:00 PM Re: creating desktop shortcut on 9x and 2000 PC's
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
This issue comes up regularly. Do a search of he forum & you will get dozens of references. You might look into the utility MAKESCUT from scriptlogoc or another I think was written by shawn & called link.exe. There are several UFDs dealing with this issue as well.
_________________________
Jack

Top
#27406 - 2002-08-20 02:06 PM Re: creating desktop shortcut on 9x and 2000 PC's
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#27407 - 2002-08-20 02:20 PM Re: creating desktop shortcut on 9x and 2000 PC's
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#27408 - 2002-08-20 02:52 PM Re: creating desktop shortcut on 9x and 2000 PC's
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Pieman,

For creating a shortcut, you can also use: Softlink() - Topic: SoftLink() - Creates a shortcut anywhere
HTH
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 640 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.103 seconds in which 0.071 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org