I am running devcon with System exec.vi and using the "standard output" to read the response, but the trouble is, it works fine when I run cmd as an administrator manually and I can read the output, but when I run the same command with labview system exec.vi , devcon seems to open another cmd window and runs in it and then close quickly resulting in a blank output. I don't know how to run cmd as an administrator pragmatically.
I would appreciate if someone has an example code of running devcon with system exec.vi and getting a response in the "standard output" to be used to make a decision using labview.