in reply to Re: Quickest way to locate System32 Dir?
in thread Quickest way to locate System32 Dir?

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. "
  • Comment on Re: Re: Quickest way to locate System32 Dir?

Replies are listed 'Best First'.
Re: Re: Re: Quickest way to locate System32 Dir?
by meetraz (Hermit) on Jan 16, 2004 at 19:36 UTC
    Actually, no. You only need to import it:
    use Win32 qw(CSIDL_SYSTEM); print Win32::GetFolderPath(CSIDL_SYSTEM);