如何从一个批处理文件,只删除空目录
问题描述:
有没有办法从一个批处理文件删除指定目录下的所有空的子目录?
Is there a way to delete all empty sub-directories below a given directory from a batch file?
或者是有可能递归地复制目录,但不包括任何空目录?
Or is it possible to recursively copy a directory, but excluding any empty directories?
答
要复制无视空迪尔斯你可以使用一个:
To copy ignoring empty dirs you can use one of:
robocopy c:\source\ c:\dest\ * /s
xcopy c:\source c:\dest\*.* /s