Hi,
In message "Re: BUG: CGI.Session on Windows"
on 03/07/21, "daz" <dooby / d10.karoo.co.uk> 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.