LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a text-file with notepad from labview-vi?

Solved!
Go to solution
Highlighted

Hello,

how can i execute a program from a vi?

I want to open a textfile with Windows7-Notepad after selelecting it from a file-path-control and pressing an open-button.

 

Thx for help

0 Kudos
Message 1 of 4
(3,976 Views)
Highlighted

SmokeCal_Main_BD.png

 

Put this in an Event case that handles the open button's value change.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 4
(3,965 Views)
Highlighted

Use the command line.  Something like cmd /c notepad c:\temp\blah.txt should work.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 3 of 4
(3,963 Views)
Highlighted
Solution
Accepted by topic author OnlyOne

Another option is the Open URL in Default Browser VI which is found in the help palette. If you use the Path to String function you can feed it the result as a URL and the Windows shell knows how to direct it to the default program, which is Notepad.

 

 

Edit -

 

Open TXT file.png


___________________
Try to take over the world!
Message 4 of 4
(3,946 Views)