[THIN] Re: User Setup:

  • From: "Braebaum, Neil" <neil.braebaum@xxxxxxxxxxxxxxxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Mon, 21 Oct 2002 09:15:19 +0100

Hi Rick.

I did this in Kix, too.

Unfortunately, had to write it before Kix included that rather handy
dectohex function :-(

Could never be bothered to do the initials, though ;-)

Neil

> -----Original Message-----
> From: Mack, Rick [mailto:RMack@xxxxxxxxxxxxxx] 
> Sent: 19 October 2002 04:24
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Re: User Setup:
> 
> 
> Hi,
> 
> Had this problem. Fixed it with a bit of kix script. Eg.
> 
> ---------- 
> $regloc1="HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Com
> mon\UserInfo"
> 
> $lenstr=len(@FULLNAME)
> $unistring=""
> ;? "@FULLNAME, $lenstr"
> 
> ; now convert the characters to unicode
> 
> while $offset<>$lenstr 
>       $Offset=$offset+1
>       $chr=dectohex(asc(substr(@fullname,$offset,1)))
>       $unistring=$unistring +$chr+"00"
> loop
> 
> $unistring=$unistring +"0000"
> 
> $result=writevalue($regloc1,"UserName",$unistring,"REG_BINARY")
> 
> ---------------

***********************************************************************
This e-mail and its attachments are intended for the above named 
recipient(s) only and are confidential and may be privileged.
If they have come to you in error you must take no action based 
on them, nor must you copy or disclose them or any part of 
their contents to any person or organisation; please notify the 
sender immediately and delete this e-mail and its attachments from 
your computer system.

Please note that Internet communications are not necessarily secure 
and may be changed, intercepted or corrupted. We advise that 
you understand and observe this lack of security when e-mailing us 
and we will not accept any liability for any such changes, 
interceptions or corruptions. 

Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping 
with good computing practice the recipient should ensure they 
are actually virus free.

Copyright in this e-mail and attachments created by us belongs 
to Littlewoods. 

Littlewoods takes steps to prohibit the transmission of offensive, 
obscene or discriminatory material.  If this message contains 
inappropriate material please forward the e-mail intact to 
postmaster@xxxxxxxxxxxxxxxxx and it will be investigated. 
Statements and opinions contained in this e-mail may not 
necessarily represent those of Littlewoods.

Please note that e-mail communication may be monitored.

Registered office: 
Littlewoods Retail Limited, 
Sir John Moores Building, 
100 Old Hall Street, 
Liverpool,
L70 1AB 
Registered no: 421258 

http://www.littlewoods.com 
***********************************************************************
***********************************************
This weeks sponsor Emergent Online
http://www.go-eol.com
Visit Jim Kenzig of thethin.net at the
Emergent Online Booth #221 at Citrix Iforum 2002!
Register now at:
http://www.citrixiforum.com/registerNow.html
*********************************************** 
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: