@Command([FileExport]) to Word question

I have the following in an form action button:

@Command([FileExport];“Microsoft RTF”;“C:\Documents and Settings\jxg0010\My Documents\”+combined_name+“.doc”)

I’m trying to have the user save the file to their My documents folder. In the code above, “jxg0010” is a network login id. How can I specify that part so it changes with whatever user is clicking the export button. In otherowrds, how do i capture their login and have it inserted into that position in the code.

I know I could ask them to enter it in a field and just put the filed name in that spot, but I’d like to capture it instead.

Thanks!

bob

Subject: @Command([FileExport]) to Word question

This will return the path to the user’s My Documents folder:

@RegQueryValue(“HKEY_CURRENT_USER”;“Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders”;“Personal”)+“\”

Subject: RE: @Command([FileExport]) to Word question

Thanks bro!