我试图列出D中所有启用了宏的文件,然后将它们复制到在同一驱动器中创建的“ newfolder”,这是我尝试过的错误消息:
D:\>copy dir \*.xlsm/S newfolder\
The system cannot find the file specified.
我应该使用什么正确的语法?
D:> xcopy * .xlsm newfolder / s
但是,如果目标位于此路径内,则无法设置选项/ s进行复制>循环!
因此目标目录必须位于其他目录,而不是父目录之外!
xcopy d:\ macros * .xlsm d:\ newfolder / s
D:> xcopy \ macros * .xlsm \ newfolder / s
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句