From: wsdng@... (Sascha D?rdelmann) Date: 2004-03-01T18:39:51+09:00 Subject: Re: Profile-independent directory specification for NT? KUSUNOSE Toru wrote: > Using Windows Scripting Host, you can do: > > require 'win32ole' > shell = WIN32OLE.new("WScript.Shell") > ProfilePath = shell.specialFolders("MyDocuments") Alternatively you can use the explorer's "Shell" object: WIN32OLE.new('Shell.application') Access to the path is not as easy, though. You need to know some constants which can be found in the Windows SDK. The good thing about using those constants is that they are language independent. Play around with the code at http://people.freenet.de/wickie/winshell.zip Cheers Sascha