You can also use the plain vanilla Win32 module to get the computername.

use Win32;
my $computername = Win32::Nodename;

I might have the capitalization wrong, so double check that by doing a
'perldoc Win32' at the command prompt.

-----Original Message-----
From: $Bill Luebkert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:19 PM
To: Vinod Panikar
Cc: [EMAIL PROTECTED]
Subject: Re: adminmisc and sound card detection


Vinod Panikar wrote:
> Hello,
> 
> I've written a script which uses AdminMisc and Win32::sound module to
create a log using machine name and dump sound card info in to the log file.
This works fine on NT,2000 and XP clients but fails on windows95/98.
> 
> Is there any way I can detect win95/98 machine name and sound card info?

Win32::AdminMisc is NT/2K based only ie: not 9x.

POSIX uname will get the machine name/os version for one, not sure about the
sound card
info, but Win32::Sound probably works on 9x.


-- 
   ,-/-  __      _  _         $Bill Luebkert   ICQ=162126130
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic
http://www.todbe.com/

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to