ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run windows script commands in Labview

Solved!
Go to solution

How do I run windows script commands in Labview? I want to use createobject and other commands. What visual element should I use for this?

0 Kudos
Message 1 of 5
(3,971 Views)
Solution
Accepted by topic author Andrey2020

Hi Andrey,

 

use SysExec to call "cmd"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,904 Views)
Solution
Accepted by topic author Andrey2020

For powershell you can use .NET:

 

PowerShell dotNET.png

Message 3 of 5
(3,874 Views)

thank you very much

0 Kudos
Message 4 of 5
(3,835 Views)

I'm seeing the following when attempting to run your code. I can't find any documentation that suggests what might be causing this. Any assistance you could offer would be greatly appreciated!

NickRanson_0-1747646044522.png

 

0 Kudos
Message 5 of 5
(981 Views)