06-06-2014 02:06 PM
Hello,
I am trying to get the current username in an application. Using a property node to pull the username works great in the development environment however once the vi is build into an exe it fails. Also tried system exec to pull the environment variable %username% and this as well works great in the development environment however fails once build. Is there a solution to this? (running LV 2012 on windows7)
Thanks,
Solved! Go to Solution.
06-06-2014 02:22 PM
06-06-2014 02:39 PM - edited 06-06-2014 02:44 PM
Nice link. But with a win 7 OS its probably easier to just do this
Then I read Derriks comment on the other thread Do that instead
06-06-2014 02:45 PM
@JÞB wrote:
Nice link. But with a win 7 OS its probably easier to just do this
An its probably easier to represent a year with 2 digits instead of 4 but that's how you get Y2K, or whatever.
I'd recommend the DLL call, more compatability. Still tied to Windows of course.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord