If I understand you correctly you just want to get the value of
%systemroot%? It is in the environment, so you can use the %ENV hash to
access it, i.e. $searchpath = $ENV{SystemRoot}."\\system";
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 1:49 AM
To: [EMAIL PROTECTED]
Subject: Where is %systemroot% set?
Hi,
I want to change a script that I made that looks for some file on a remote
machine. Currently I'm using "C:\WINNT\system\" as searchpath, and I want to
change that to "%WINDIR%\system". Now I've looked in the registry under
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment for that
variable, but %windir% just points to %SystemRoot%, and that one isn't in
that registry path. So where is that variable accessible in the registry?
regards, Lars
_______________________________________________
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