Windows registry question
Ken Ray
kray at sonsothunder.com
Tue Aug 16 12:33:30 EDT 2005
On 8/16/05 10:57 AM, "Lynch, Jonathan" <bnz2 at cdc.gov> wrote:
> I am trying to figure out how to obtain printer information from the
> registry.
>
> Rev doesn't really allow perfect printer control. I want to create a
> one-stop substack that works as a printer dialog box, but allows for
> proper control of printer choice, collating, page numbers, etc... For
> windows, anyway. Probably none of this is necessary for Mac or Linux.
>
> Some printer information (network printers, I believe) is contained, for
> example, in HKEY_CURRENT_USERS\PRINTERS\CONNECTIONS
>
> It is not the key that I need, but the list of folders contained under
> CONNECTIONS.
Well, you could use the "reg" command through the shell and export the
folders to a text file that you could then open and parse:
get shell("reg export HKCU\PRINTERS\CONNECTIONS C:\Dump.txt")
put url("file:C:\Dump.txt") into tData
... etc.
HTH,
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list