Ok, so I'm using the systemexec.vi to call devcon in win7. I'm looking for two things. The first is that the output doesn't get passed to the standard output. This worked in XP but not in Win7. The second thing is how do I add to the command line to run as an admin so I don't get the security screen?
Jonathan M. Slavic Senior Staff Engineer Mine Safety Appliances Co. (MSA)
For your first question, it looks like smercurio_fc answered it pretty well in that link. As for the second part, it is impossible to run anything as administrator without having it come up with the UAC screen (unless the user turns it off in the control panel of course). This forum indicates this, as well as how to run as administrator with the UAC screen, if you need to do that: http://stackoverflow.com/questions/667381/programatically-run-cmd-exe-as-adminstrator-in-vista-c-sha... Note that even though this is in C#, you could run cmd.exe with the same parameters it mentions, and still be able to get cmd.exe to run as administrator.
David M. Applications Engineer National Instruments