[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Getting My Documents Folder

Daniel Berger

7/23/2006 1:52:00 PM

Dave Ru wrote:
> Hi,
> I'm trying to find the my documents folder for the current user in
> windows. I know this can be done using Win32API, but I'm a little
> confused
> on the syntax. Here's an article on how to do it in VB
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnima01/html/i...
>
> .
>
>
> Thanks,
> Dave
>
require 'win32/dir'

Dir::PERSONAL # "C:\\Documents and Settings\\djberge\\My Documents"

Regards,

Dan