Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   user name (http://www.programmingforums.org/showthread.php?t=10549)

NightShade01 Jun 27th, 2006 8:45 PM

user name
 
How would i find out what a user name is so that i might insert it to check for the validity of a file?

EX: user name is John

click a button: System.Diagnostics.Process.Start("C:\Documents and Settings\" + user + "\desktop")

Does this make sense?

DaWei Jun 27th, 2006 8:49 PM

No. Ask the user or look it up.

Ooble Jun 27th, 2006 9:49 PM

Something to think about: "Documents and Settings" and "Desktop" might change depending on the OS language and version. Windows Vista, for example, uses "Users" instead of "Documents and Settings".


All times are GMT -5. The time now is 8:02 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC