Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Quickest way to locate System32 Dir?

by MADuran (Beadle)
on Jan 14, 2004 at 20:17 UTC ( #321350=note: print w/ replies, xml ) Need Help??


in reply to Quickest way to locate System32 Dir?

System32 directory is almost always in the System root directory. In windows NT/2000/XP/2003 the path to the system32 is always SystemRoot\system32, where SystemRoot is in the ENV hash. When I run this:
C:\>perl -e "@keys = keys(%ENV); foreach $key (@keys){print qq/$key = $ENV{$key} \n/;};"

I show SYSTEMROOT such:

... SYSTEMDRIVE = C: PROCESSOR_REVISION = 0806 SYSTEMROOT = C:\WINNT COMSPEC = C:\WINNT\system32\cmd.exe ...
I cannot be sure if this is true on Win9x systems (I believe it is).

update: grammar repair.

MADuran
In need of a spiffy sig


Comment on Re: Quickest way to locate System32 Dir?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://321350]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2014-07-22 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (127 votes), past polls