Hi, At Tue, 8 Nov 2005 14:12:12 +0900, Daniel Berger wrote in [ruby-talk:164722]: > The second argument is an optional null-terminated array of > directories. How do I create the Ruby structure to pass to it? $ ruby18-mswin32 -rWin32API -e ' PathFindOnPath = Win32API.new("shlwapi","PathFindOnPath","PP","L") file = "ruby.exe"+"\0"*256 path = ENV["PATH"].split(File::PATH_SEPARATOR).pack("p*") p PathFindOnPath.call(file, path) p file[/\A[^\0]+/]' 1 "c:\\cygwin\\bin\\ruby.exe" -- Nobu Nakada