LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run command line in LABVIEW 7.1

Dear Sir/Madam,
 
I want to execute such as command like this:
 
c:\data\rename aa.txt aa.hex
 
In LABVIEW 7.1, how do we implement this command. I really appreciate your help on this matter.
 
Regards,
Xia
0 Kudos
Message 1 of 11
(7,812 Views)
Use the sys exec function.  In LV 7.1 it is in the Communications palette.
 
paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 11
(7,806 Views)
I was assuming this was a command line exe for renaming?
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 11
(7,803 Views)

Thanks for your message. I have tried sys exe in communication palatte. But it gives me error. I am not sure what is wrong.

Actually, in windows environment, I click the "Start" Button and run "cmd". Dos environment opens and then use the command Rename test.txt test.hex

I appreciate more help on this matter.

0 Kudos
Message 4 of 11
(7,795 Views)

Thanks for your message. I have tried sys exe in communication palatte. But it gives me error. I am not sure what is wrong.

Actually, in windows environment, I click the "Start" Button and run "cmd". Dos environment opens and then use the command Rename test.txt test.hex

I appreciate more help on this matter.

0 Kudos
Message 5 of 11
(7,793 Views)
yes.
0 Kudos
Message 6 of 11
(7,792 Views)
what error do you get?  look at the error cluster to see this. 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 7 of 11
(7,784 Views)
Can you send me the program you write so that I can compare?
 
Thank you!
0 Kudos
Message 8 of 11
(7,778 Views)
I realize this isn't a direct answer to your question, but if you are trying to rename a file, why don't you use the move function in the Advanced File Functions palette?
0 Kudos
Message 9 of 11
(7,777 Views)
You may need to use the following coomand line for system exec:

cmd.exe /c c:\data\rename aa.txt aa.hex


0 Kudos
Message 10 of 11
(7,774 Views)