フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Get unzipped files, copy and unzip them

1 回表示 (過去 30 日間)
MF
MF 2016 年 8 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi, I have a folder containing 2886 subfolder, and each subfolder contains zipped files. I want to enter each subfolder, copy the first 8 zipped files, copy them in a new folder, and unzip them in the new folder. I have no idea from where to start ...any help please

回答 (1 件)

Luke Halberstadt
Luke Halberstadt 2016 年 8 月 17 日
Use the "ls" MATLAB command to acquire a list of subdirectories, e.g. filenames = ls; Use the "cd" MATLAB command to move to a particular subdirectory. Use the "unzip" MATLAB command as specified. Use the "!cp SRC_FILE DEST_FILE" command to invoke the "cp SRC_FILE DEST_FILE" shell command. Use the "mkdir" MATLAB command to create the necessary directories.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by