Short answer
You can copy and rename TDMS files using either LabVIEW functions,
Windows Explorer or whatever tool you prefer. You can either copy /
rename the TDMS and the TDMS_INDEX file, or just the TDMS file. If you
have saved any properties / values that you need to adapt to the
new file name, use the TDM Streaming functions do modify them as needed.
Details
TDMS files do not have any "built-in" references to the TDMS_INDEX
file. You can even delete the TDMS_INDEX file and we will regenerate it
the next time you access the file. If you have the NI DataFinder
running, the index file will be "magically" recreated by the DataFinder background
process. The information contained in the TDMS_INDEX file is redundant
to parts of the TDMS file, the index file just speeds up reading quite a bit.
This is a big difference between TDMS and TDM files. If you want to
rename a TDM file, you will have to replace an internal string that
points to the binary part of the TDM file. You might be able to find
the details on that in some other developer zone thread, I answered it
there a couple of weeks ago.
Processing a TDMS file as a string is generally a bad idea because it
is a binary file and string processing will convert it to an
alphanumeric character set and thereby corrupt the file.
Herbert