10-16-2014 12:16 PM
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
10-16-2014 01:07 PM - edited 10-16-2014 01:08 PM
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/
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord