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);