Page 3 of 3 <123
Topic Options
#28981 - 2002-09-16 09:10 PM Re: Copying Shortcut
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
Another "ignorance is showing question".
If a user deletes the icon from the desktop, next time he logs in does the registry setting put another on the desktop or does the "Runonce" know it has already run this and does not do anything?
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28982 - 2002-09-16 10:10 PM Re: Copying Shortcut
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hence the name runonce.
if you want it to run every time, put it in run key instead of runonce
_________________________
!

download KiXnet

Top
#28983 - 2002-09-16 10:13 PM Re: Copying Shortcut
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
As 'RunOnce' implies, it'll run only once and then delete itself. In your case, where you try to force a desktop icon to be present on the users desktop all the time, you will need to check during every login script phase whether the link is there or not. If the link does not exist you rerun the RunOnce stuff. You can use EXIST to check for the presence of a file.

You want to do the check from within the login script since users can just remove the content of the Run key, thus preventing the update. Secondly, it is unnecessary to copy the link everytime.

[ 16. September 2002, 22:14: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
Page 3 of 3 <123


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

Who's Online
1 registered (Allen) and 692 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.052 seconds in which 0.024 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