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: 

Save\Create cmd file with Labview

Hi,

I have a LabVIEW code that outputs a string of information.  I save this string in a text file.  I need to use LabVIEW to save the string as a text and a .cmd extension file.  Opening the text file and using Save as to create the cmd file is not an option for me.  I would appreicate any help or tips on creating a cmd file with LabVIEW.

 

Thanks 

MoAgha

0 Kudos
Message 1 of 2
(2,366 Views)

When you perform the write to text file you must provide the file name for it to be saved as...just set the name to "Whatever.cmd" instead of "Whatever.txt"

 

EDIT:  Link to write function

http://zone.ni.com/reference/en-XX/help/371361J-01/glang/write_characters_to_file/

0 Kudos
Message 2 of 2
(2,352 Views)