Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 chilling in the Monastery: (15)
As of 2015-07-03 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls