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: 

Execute a ".cmd" in Labview

Solved!
Go to solution

Hello ! 

 

I want to execute a Windows script ".cmd". This script execute other script so i execute the main script using System exec but it doesn't work and gives me differentes error  :

Douke_0-1656599653532.png

For information the script i using program a STM32 micro

Douke_1-1656600114979.png

Can you  help to resolve this problem ? 

 

The script work without Labview

 

Thank you 🙂 

 

Jason 

 

0 Kudos
Message 1 of 4
(695 Views)
Solution
Accepted by topic author Douke

It's often useful to connect the "Working directory"

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 4
(683 Views)

Thank you ! Why i didn't think of that before ahah ... 

0 Kudos
Message 3 of 4
(672 Views)

That's actually a tricky one! Most things work without it as long as %PATH% is correct, but sometimes it's needed.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 4 of 4
(639 Views)