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
- last edited on
04-26-2026
03:03 PM
by
Content Cleaner
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
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/write-to-text-file.html
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord