批处理脚本以查找驱动器中的特定文件夹

时间:2022-02-07 11:23:23

am a newbie to the batch script, i have many folders called LIB in my drive say it can be as LIB_data,lib,lib_ac anything that starts with lib or LIB... i want to list all these directories and sort them in which they have created in the pc and copy the latest directory contents to BATCH_LATEST_LIB_FILES folder,that will be a new folder created by this batch file.i want this new folder to be created in the path where this batch file is present. please help me with a batch script.

我是批处理脚本的新手,我的驱动器中有很多名为LIB的文件夹,说它可以像LIB_data,lib,lib_ac一样以lib或LIB开头......我想列出所有这些目录并对它们进行排序已在PC中创建并将最新目录内容复制到BATCH_LATEST_LIB_FILES文件夹,该文件夹将是此批处理文件创建的新文件夹。我希望在此批处理文件所在的路径中创建此新文件夹。请帮我一个批处理脚本。

1 个解决方案

#1


0  

You might look at FOR, DATE, TIME, SORT, IF, GOTO and XCOPY.

您可以查看FOR,DATE,TIME,SORT,IF,GOTO和XCOPY。

This site is a great resource for batch files.

该站点是批处理文件的绝佳资源。

#1


0  

You might look at FOR, DATE, TIME, SORT, IF, GOTO and XCOPY.

您可以查看FOR,DATE,TIME,SORT,IF,GOTO和XCOPY。

This site is a great resource for batch files.

该站点是批处理文件的绝佳资源。