http://www.perlmonks.org?node_id=330539


in reply to "Porting" scripts to Win32

Typically \WINNT\Temp is availible for Windows NT/2000/XP. I think Windows 95/98/ME have a \Windows\Temp folder. To figure out exactly which version of windows you are on, you'll need to check the registry or use Win32::GetOSVersion()

Replies are listed 'Best First'.
Re: Re: "Porting" scripts to Win32
by Anonymous Monk on Feb 21, 2004 at 00:24 UTC
    Typically \WINNT\Temp is availible for Windows NT/2000/XP.
    No. Windows XP uses c:\WINDOWS for the Windows directory by default, not c:\WINNT. And you probably don't want to hardcode the default, so rely on %WINDIR%.