Along with all system variables, it is in %ENV...
 
$win_inst = $ENV{'WINDIR'};
-----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

Reply via email to