![]() |
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? |
No. Ask the user or look it up.
|
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