Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Get unzipped files, copy and unzip them

1 visualización (últimos 30 días)
MF
MF el 17 de Ag. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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

Respuestas (1)

Luke Halberstadt
Luke Halberstadt el 17 de Ag. de 2016
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.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by