how to know who executed my application ?
-
hello , my application either run automatically on startup or can be manually executed by user. is there a way to know who triggered the application ? i want to add a note about it in a log file my application creates. thanks in advance, avi
-
hello , my application either run automatically on startup or can be manually executed by user. is there a way to know who triggered the application ? i want to add a note about it in a log file my application creates. thanks in advance, avi
-
hello , my application either run automatically on startup or can be manually executed by user. is there a way to know who triggered the application ? i want to add a note about it in a log file my application creates. thanks in advance, avi
shabya wrote:
know who triggered the application ?
Depends on how you define "who". Computer Name or User Name?
:) I Love KongFu~
-
Well I know a dirty workaround: give the auto-startup entry a command line argument and use that. Doesn't give any kind of guarantee, but it will "usually" be accurate and it's easy to implement.
-
shabya wrote:
know who triggered the application ?
Depends on how you define "who". Computer Name or User Name?
:) I Love KongFu~
-
hi, i ment by who : the computer itself on startup or manual activation from srart->programs -> ...
shabya wrote:
the computer itself on startup or manual activation from srart->programs ->
Well, in this case, Environment.UserName is exactly what you are looking for. Jimmanuel already give you the anwser:)
:) I Love KongFu~