I am using matlab file in which i am able to create the new folder according to the time, but the thing is i want to copy the files from a specific file to this newly made folder according to time.

2 ビュー (過去 30 日間)
dfile=[datestr(now,'mm-dd-yyyy HH.MM.SS'),'folder']; mkdir(dfile);
this is my code for making new folder with time, how to add some files from specific location/folder to this newly made folder. It should be like every time we make new folder those files should be included.
thanks

採用された回答

KL
KL 2017 年 11 月 22 日
  3 件のコメント
KL
KL 2017 年 11 月 22 日
mkdir makes new folder. You have already used mkdir(dfile).
I suggest to use copy file after that.
copyfile('yourfile.m',dfile)
Rameez Israr
Rameez Israr 2017 年 11 月 22 日
yea thanks.... it worked... thanks KL

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by