Page 2 of 2 <12
Topic Options
#37646 - 2003-03-14 04:34 PM Re: reg keys based at username
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well...
at least it would be a good example and demonstration that it works.
did this work now with 4.20 or did you need to use 4.21 rc1?
_________________________
!

download KiXnet

Top
#37647 - 2003-03-14 04:49 PM Re: reg keys based at username
_RaVe_ Offline
Fresh Scripter

Registered: 2003-03-02
Posts: 11
Ok here it is.
And this needs 4.21 rc1 to work, have just tested it with 4.20 and no success

code:
 
$sDatabaseSource="\\FS1\Profiles$$\groups\sintas\data\"
$sDatabaseDestination="\\fs1\randers-reb$$\userdata\"+@USERID+"\addon\"
If Not Exist($sDatabaseDestination)
Copy $sDatabaseSource $sDatabaseDestination /s
ENDIF
$sintasreg = "HKCU\Software\Add-On Products\exchange central\paths"
IF KEYEXIST ($sintasreg) = 0
ADDKEY ($sintasreg)
ENDIF
IF (WriteValue($sintasreg,"DefaultDatabase","\\fs1\randers-reb$\userdata\"+@USERID+"\addon\","REG_SZ") <> 0 )
? "Warning KIX: Error status @error (@serror)"
ENDIF
IF (WriteValue($sintasreg,"UserData","\\fs1\randers-reb$\userdata\"+@USERID+"\addon\","REG_SZ") <> 0 )
? "Warning KIX: Error status @error (@serror)"
ENDIF

_________________________
One by one the Pinguins came and took my sanity away.

Top
#37648 - 2003-03-14 04:54 PM Re: reg keys based at username
_RaVe_ Offline
Fresh Scripter

Registered: 2003-03-02
Posts: 11
BTW
the reason for it not to work with 4.20 is that im copying a folder with subfolder etc, btw

f i choose just to copy the 1 important file (in this case sec.mdb) it works with 4.20
_________________________
One by one the Pinguins came and took my sanity away.

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.057 seconds in which 0.03 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