NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Warrior_1670cc
Posts: 14
0 Kudos

Devcon win7 - admin rights, no output

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)
Knight of NI
Posts: 18,064
0 Kudos

Re: Devcon win7 - admin rights, no output

Member
DmcG
Posts: 9
0 Kudos

Re: Devcon win7 - admin rights, no output

Warrior 1670cc,

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
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page