Change file extension from .dat to .csv

조회 수: 34 (최근 30일)
bugguts99
bugguts99 2011년 4월 18일
Hi there,
Please excuse if this is a naive question...I have searched the web all day with no joy. I have quite a large number of ASCII .dat files of mixed string and numeric data and I would like to change the file extension to .csv. Is there a simple way of doing this?

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 4월 18일
help movefile
help copyfile
or
!ren *.dat *.csv
  댓글 수: 2
Walter Roberson
Walter Roberson 2011년 4월 18일
The !ren option would at best work on Windows systems.
I also recommend the FAQ: http://matlab.wikia.com/wiki/FAQ?cb=4562#How_can_I_process_a_sequence_of_files.3F
bugguts99
bugguts99 2011년 4월 19일
!ren *.dat *.csv works wonders. Thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by