Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Quickest way to locate System32 Dir?

by flyingmoose (Priest)
on Jan 14, 2004 at 21:01 UTC ( [id://321369]=note: print w/replies, xml ) Need Help??


in reply to Quickest way to locate System32 Dir?

It looks like you want
use Win32; print Win32::GetFolderPath(CSIDL_SYSTEM);
ActiveState Linky

Replies are listed 'Best First'.
Re: Re: Quickest way to locate System32 Dir?
by NetWallah (Canon) on Jan 14, 2004 at 22:43 UTC
    flyingmoose .. you need to establish the value by setting

    use constant CSIDL_SYSTEM => 0x25; # Decimal 37

    before you can GetFolderPath.
    In any case, that is the exact equivalent of calling 'GetSystemDirectory()' .

    "When you are faced with a dilemma, might as well make dilemmanade. "
      Actually, no. You only need to import it:
      use Win32 qw(CSIDL_SYSTEM); print Win32::GetFolderPath(CSIDL_SYSTEM);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found