先测试,显示结果正确的话删除 -WhatIf,再次执行即可。- @echo off
- md "三国" 2>nul
- PowerShell "dir -Path . -Include '*〖吴*.txt' -File -Recurse | move -Dest '三国\' -Force -WhatIf"
- pause
复制代码
- @echo off
- md "三国" 2>nul
- PowerShell "dir -Path . -Include ((type a.txt) -replace '$', '*.txt') -File -Recurse | move -Dest '三国\' -Force -WhatIf"
- pause
复制代码
|