From: Daniel Berger Date: 2005-05-29T12:50:20+09:00 Subject: Re: Need help with PathCreateFromUrl vanek@acd.net wrote: > This works for me: > > require "Win32API" > > MAX_PATH = 255 > PathCreateFromUrl = > Win32API.new("shlwapi", "PathCreateFromUrl", 'PPPL', "i") > > buf = 0.chr * MAX_PATH > > url = "file://localhost/c:/winzip.log" > > lpLen = " " * 4 # lpLen is a pointer to a LONG > > p PathCreateFromUrl.call(url, buf, lpLen, 0) > p buf > > #config: Windows XP Pro SP2, ruby 1.8.2, cygwin That worked great, thanks. Dan