关于通配符文件复制
powershell吧
全部回复
仅看楼主
level 1
请教大佬们,我手上C:\Users\123 这个文件夹里有一些html文件,我不知道他们的名字和数量,怎样把这些文件复制到C:\tools 这个文件夹里面去呢?在线等,谢谢
2021年03月06日 13点03分 1
level 7
man cp
2021年03月08日 16点03分 2
level 1
多看help
cp C:\Users\123\*.html C:\tools
2021年03月11日 08点03分 3
level 7
我手上C:\Users\123 这个文件夹里有一些html文件------假如没有子文件夹,和子文件夹里的html,楼上的命令即可。或
copy-item -path C:\Users\123\*.html -Destination C:\tools
如果有,就需要:
get-childitem -path c:\users\123\*.html -rescue | copy-item -path $_ -Destination C:\tools
2021年03月11日 14点03分 4
1