|
From: mario on 5 Aug 2008 07:25 is there a function in cobol that i can get my HDD number, or chip number or some other unique single user identification ? tks a lot!
From: Kellie Fitton on 5 Aug 2008 11:33 On Aug 5, 4:25 am, mario <mmc_vw1...(a)hotmail.com> wrote: > is there a function in cobol that i can get my HDD number, or chip > number or some other unique single user identification ? > > tks a lot! Hi, There are no COBOL functions that can get a unique system ID. But, if you are willing and able to use the Windows Management Instrumentation classes, then.... You can use the same installation ID of the operating system to get a globally unique ID for a given machine. The following WMI class should help you out: Win32_WindowsProductActivation Or, you can use the following WMI class to get the manufacturer's serial number used to identify the physical media: Win32_PhysicalMedia http://msdn2.microsoft.com/En-US/library/aa394520.aspx http://msdn2.microsoft.com/en-us/library/Aa394346.aspx Kellie.
From: SkippyPB on 5 Aug 2008 11:51 On Tue, 5 Aug 2008 04:25:33 -0700 (PDT), mario <mmc_vw1200(a)hotmail.com> wrote: >is there a function in cobol that i can get my HDD number, or chip >number or some other unique single user identification ? > >tks a lot! Short answer- no. Regards, //// (o o) -oOO--(_)--OOo- "Bigamy is having one wife too many. Monogamy is the same." --- Oscar Wilde ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Remove nospam to email me. Steve
From: billious on 5 Aug 2008 14:16 "mario" <mmc_vw1200(a)hotmail.com> wrote in message news:a031ca82-2711-4044-b02b-9e0cbb32a31e(a)a70g2000hsh.googlegroups.com... > is there a function in cobol that i can get my HDD number, or chip > number or some other unique single user identification ? > > tks a lot! Presuming you're going through WINDOWS, would retrieving the value of USERNAME from the environment suit your purpose, or could you arrange for a unique environment variable to retrieve?
From: Richard on 5 Aug 2008 15:32 On Aug 5, 11:25 pm, mario <mmc_vw1...(a)hotmail.com> wrote: > is there a function in cobol that i can get my HDD number, or chip > number or some other unique single user identification ? The MAC address on your NIC should be globally unique. On Linux /sbin/ ifconfig will list the network cards with the hardware address. On Windows it may be ipconfig and this should give the 6 byte physical address. You should be able to use something like: CALL "SYSTEM" USING "ipconfig >networkdata" & x"00" and then read the resulting file to extract the required item. Warning: just because that number is burned onto the network card does not mean that if/ip config actually gets it from there. There is a driver between the utility and the card and anything can happen between, and often does.
|
Next
|
Last
Pages: 1 2 3 Prev: CoBOL and Contracting (was: All X'0D' lost during...) Next: CoBOL and Contracting (new thread) |