This works.
use Win32;
print Win32::ExpandEnvironmentStrings("%windir%");
James Howarth
Incomnet Communications Inc.
Network Administrator
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Voice: 949-224-7194
"Times are bad. Children no longer obey
their parents, and everyone is writing a
book."
-- Marcus Tullius Cicero, statesman, orator, and writer
(106-43 B.C.)
-----Original Message-----
From: guess_who344 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 27, 2001 1:54 PM
To: [EMAIL PROTECTED]
Subject: %windir%
Is there any way to get the value of the %windir% command into a variable?
For example, I'd like to populate $win_inst with the location of where
windows is installed.
system "%windir% >$data"; # doesn't work
Thanks,
Ron
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin