From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

devcon not recognized

Solved!
Go to solution

I have recently installed devcon.exe in the following folder: C:\Windows\System32 and it works fine for me when using the command prompt (cmd.exe). However when I try to use it with labview through the "System Exec.vi", I get the following error:

 

'devcon' is not recognized as an internal or external command,
operable program or batch file.

 

This seems like the devcon.exe can't be found by Labview. I tried locating the devcon.exe in the same folder as the VI that was running but to no avail. I have attached the code. Any help appreciated.

0 Kudos
Message 1 of 3
(14,684 Views)
Solution
Accepted by topic author SMcS12

Problem solved. The working directory needs to be left blank and it works then.

0 Kudos
Message 2 of 3
(14,682 Views)

How do you fix it? I tried the same thing but it does not work.

0 Kudos
Message 3 of 3
(12,017 Views)