01-28-2011 12:20 PM
Hello together,
My English isn´t the best, but I hope I could explain my problem.
I use command mode to copy many files to one file (big one) to analyse data.
In command mode I could use "copy *.txt newfile.txt"
then i´ve all files with the extension .txt in the newfile.txt!
I want to do this automatically by LabVIEW.with the system excec.vi.
WIN7 LabVIEW 2009.
I get Error2 back.
It sounds easy, but It doesn´t work.
Could anyone help, maybe with short excamplecode?
01-28-2011 12:51 PM
The help for System exec tell you to place a "cmd /c" before a DOS commmand.
Did you do that?
01-28-2011 12:51 PM
Rather than use SystemExec, you could just use LabVIEW native code.
You just want to append several files into one large file?
You could just use the 'write to text file' and 'read from text file' VIs
01-28-2011 02:36 PM
As Cory mentioned, this could be done in LabVIEW.
That said, please note that you have to supply the full path to your files in your command line with System Exec.
The "Path" input for System Exec will not provide the path as one might expect.
See this post:
http://forums.ni.com/t5/LabVIEW/Memory-is-full/m-p/1287754?requireLogin=False
The error 2 that you get from System Exec is most likely "file not found".
steve