From: matz@... (Yukihiro Matsumoto) Date: 2003-07-21T15:02:06+09:00 Subject: Re: BUG: CGI.Session on Windows Hi, In message "Re: BUG: CGI.Session on Windows" on 03/07/21, "daz" writes: |require "Win32API" |MAX_PATH = 260 | |def temp_path | t_path = ' '*(MAX_PATH+1) | t_path[0, Win32API.new('kernel32', 'GetTempPath', 'LP', 'L').call(t_path.size, t_path)] |end | |puts temp_path | |# -> C:\TEMP\ Thank you for the code. It will help me a lot. matz.