Welcome to Phrogram Sign in | Join | Help
in Search


Any way to get the Windows username in a Phrogram?

Last post 09-04-2008, 2:32 PM by ZMan. 3 replies.
Sort Posts: Previous Next
  •  08-28-2008, 10:59 AM 7095

    Any way to get the Windows username in a Phrogram?

    Is there any function available that will allow one to retrieve the username of the logged in user? I'd like to make a p[h]rogram always access files under C:\Documents andSettings\username\My Documents\... and it's pretty naff to have to ask the user to enter their username...

    Thanks,  Chris

  •  08-29-2008, 5:16 PM 7096 in reply to 7095

    Re: Any way to get the Windows username in a Phrogram?

    I'm pretty sure that Phrogram cannot do this.
  •  08-30-2008, 12:34 AM 7097 in reply to 7096

    Re: Any way to get the Windows username in a Phrogram?

    I haven't tried it, but maybe the class FileIO.TextInputFile , from the extended I/O add in library?

     

  •  09-04-2008, 2:32 PM 7114 in reply to 7097

    Re: Any way to get the Windows username in a Phrogram?

    There is currently no way to do this.

    The correct way is not to construct this path yourself anyway. I have a feature request logged to expose 'special' paths to Phrogram somehow e.g. "My documents", "Temp" etc. But this will be in a future (unspecified) version.

     


    Managed DirectX and XNA ? Check out http://www.thezbuffer.com
View as RSS news feed in XML