删除名称中带有竖线 (|) 的目录?

Dav*_*vis 4 windows-xp directory pipe

如果不启动到 Linux,如何删除在 Linux 中在 NTFS 分区上创建的目录,该目录在文件名中包含管道?

例如:

f:\flac\foreign\Yoshida_Brothers\Best_of_Yoshida_Brothers_|_Tsugaru_Shamisen
Run Code Online (Sandbox Code Playgroud)

尝试并失败:

  • 午夜指挥官
  • 递归删除父文件夹
  • del /f /s /q Yoshida_Brothers
  • del /f /s /q "\\?f:\flac\foreign\Yoshida_Brothers\"
  • rmdir /s Yoshida_Brothers
  • rmdir Best*
  • 文件刺客
  • 无法删除文件夹

其他想法?

Den*_*son 5

用单字符通配符替换?管道字符应该可以:

del f:\flac\foreign\Yoshida_Brothers\Best_of_Yoshida_Brothers_?_Tsugaru_Shamisen
Run Code Online (Sandbox Code Playgroud)