From: Highstat on
Hello,

I need a piece of Tcl code that shows my end user the hard drive
serial number of the drive on which he/she installs my software. How
would I do that?

Alain
From: tcltk-d on
Under WINDOWS,
"Scripting.FileSystemObject" is installed,
So you can access it via "OPTCL".

Example tcl:
load "optcl.dll";
set FS [optcl::new Scripting.FieSystem.Object];
set Drive [$FS GetDrive C:]; # I think "Get" is not objective!!
print [$Drive : SerialNumber]
print [$Drive : FreeSpace]
print [$Drive : VolumeName]
# and so on...

On 17Feb, 7:27AM, Highstat <highs...(a)highstat.com> wrote:
> Hello,
>
> I need a piece of Tcl code that shows my end user the hard drive
> serial number of the drive on which he/she installs my software. How
> would I do that?
>
> Alain

From: APN on
On Feb 17, 3:27 am, Highstat <highs...(a)highstat.com> wrote:
> Hello,
>
> I need a piece of Tcl code that shows my end user the hard drive
> serial number of the drive on which he/she installs my software. How
> would I do that?
>
> Alain

Using twapi,

package require twapi
twapi::get_volume_info c: -serialnum

From: Sean Woods on
On Feb 17, 12:15 am, APN <palm...(a)yahoo.com> wrote:
> On Feb 17, 3:27 am, Highstat <highs...(a)highstat.com> wrote:
>
> > Hello,
>
> > I need a piece of Tcl code that shows my end user the hard drive
> > serial number of the drive on which he/she installs my software. How
> > would I do that?
>
> > Alain
>
> Using twapi,
>
> package require twapi
> twapi::get_volume_info c: -serialnum

Oh cool... I'd been synthesizing a batch file and calling it through
exec up until now.

Thank you Tcl Dudes!

--Sean "The Hypnotoad" Woods
From: Will Duquette on
On Feb 17, 3:36 am, Sean Woods <y...(a)etoyoc.com> wrote:
> On Feb 17, 12:15 am, APN <palm...(a)yahoo.com> wrote:
>
> > On Feb 17, 3:27 am, Highstat <highs...(a)highstat.com> wrote:
>
> > > Hello,
>
> > > I need a piece of Tcl code that shows my end user the hard drive
> > > serial number of the drive on which he/she installs my software. How
> > > would I do that?
>
> > > Alain
>
> > Using twapi,
>
> > package require twapi
> > twapi::get_volume_info c: -serialnum
>
> Oh cool... I'd been synthesizing a batch file and calling it through
> exec up until now.
>
> Thank you Tcl Dudes!
>
> --Sean "The Hypnotoad" Woods

Can someone explain to me why you need to do this?