[THIN] Re: Kix script problem

  • From: Bill.Ramby@xxxxxxxxxxx
  • To: thin@xxxxxxxxxxxxx
  • Date: Thu, 12 Sep 2002 06:49:03 -0500

It should. It's probably your original code, or you've seen it here. Like
any good admin, I don't re-invent the wheel. I've used bits and pieces I've
found here and there on this board. Makes my life much easier, at least when
I haven't broken it. :~)

Thanks for the clue. I'll give it a whirl.

-----Original Message-----
From: Mack, Rick [mailto:RMack@xxxxxxxxxxxxxx]
Sent: Wednesday, September 11, 2002 4:09 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Kix script problem


Hi,

The code looks familiar ;-)

The only thing I can see wrong is that $regloc isn't on a new line by
itself.

Try running kix32 /d scriptname to single step through the script.

Regards,

Rick

Ulrich Mack
rmack@xxxxxxxxxxxxxx
Volante Solutions
18 heussler Terrace, Milton 4064
Queensland Australia
tel +61 7 32467704



-----Original Message-----
From: Bill.Ramby@xxxxxxxxxxx [mailto:Bill.Ramby@xxxxxxxxxxx] 
Sent: Thursday, 12 September 2002 3:59 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Kix script problem



WTS 4.0 SP5 (by necessity)/MF1.8

I'm trying to write  kix scipt for my Citrix servers to set Adobe Acrobat's
print function to "Print to Image" in studying it I found that whenever you
set Adobe to Print to Image, it creates a DWord value in
HKCU\Software\Adobe\Adobe Acrobat\4.0\PrinterSettings that is equal to your
default printer. To get that value I go to HKCU\Software\Microsoft\Windows
and get the data frome the Device value. That value is the default printer
then separated by a comma the word winspool and another comma and Ne22:. In
the script below I attempt to get that value, strip off the second and third
datums, and then write a new value to the registry. Somewhere between
getting and putting, my script is dyeing. Any help from the Kix guru's here
would be appreciated.

; fixacro.scr - sets "Print To Image"
;
; Variables $regloc="HKEY_CURRENT_USER\Software\Microsoft\Windows"
$regmake="HKEY_CURRENT_USER\Software\Adobe\Adobe
Acrobat\4.0\PrinterSettings"
$delimitr=","
;
;
$device=readvalue($regloc,"Device")
$offset=instr($device,$delimitr)
;
$defptr=substr($device,1,$offset-1)
;
;
writevalue($regmake,$defptr,"1","REG_DWORD")
:end


**********************************************
This weeks sponsor 99Point9.com
99Point9 helps solve your unresolved technical
server-based questions, issues and incidents. http://www.99point9.com
***********************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm


 
**********************************************************************
This email may be confidential and/or privileged. Only the intended 
recipient may access or use it. Any dissemination, distribution or
copying of this email is strictly prohibited. If you are not the
intended recipient please notify us immediately by return email and
then erase the email.

We use virus scanning software but exclude all liability for viruses 
or similar in any attachment or message...,..,..,.

 
**********************************************************************





**********************************************
This weeks sponsor 99Point9.com
99Point9 helps solve your unresolved technical
server-based questions, issues and incidents.
http://www.99point9.com
***********************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm


**********************************************
This weeks sponsor 99Point9.com
99Point9 helps solve your unresolved technical
server-based questions, issues and incidents.
http://www.99point9.com
***********************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: