![删除名称中带有竖线 (|) 的目录?](https://linux22.com/image/509816/%E5%88%A0%E9%99%A4%E5%90%8D%E7%A7%B0%E4%B8%AD%E5%B8%A6%E6%9C%89%E7%AB%96%E7%BA%BF%20(%7C)%20%E7%9A%84%E7%9B%AE%E5%BD%95%EF%BC%9F.png)
无需启动 Linux,如何删除在 Linux 中在 NTFS 分区上创建的文件名中包含竖线的目录?
例如:
f:\flac\foreign\Yoshida_Brothers\Best_of_Yoshida_Brothers_|_Tsugaru_Shamisen
尝试过但失败了:
- 午夜指挥官
- 递归删除父文件夹
del /f /s /q Yoshida_Brothers
del /f /s /q "\\?f:\flac\foreign\Yoshida_Brothers\"
rmdir /s Yoshida_Brothers
rmdir Best*
- 文件刺客
- 无法删除文件夹
还有其他想法吗?
答案1
用单字符通配符替换?
管道字符应该有效:
del f:\flac\foreign\Yoshida_Brothers\Best_of_Yoshida_Brothers_?_Tsugaru_Shamisen