Without booting to Linux, how do you delete a directory that was created in Linux on an NTFS partition that contains a pipe in the file name?

For example:


Tried and failed:

  • Midnight Commander
  • Recursively deleting the parent folder
  • del /f /s /q Yoshida_Brothers
  • del /f /s /q "\\?f:\flac\foreign\Yoshida_Brothers\"
  • rmdir /s Yoshida_Brothers
  • rmdir Best*
  • Cannot delete folder

Other ideas?


Substituting the single-character wildcard ? for the pipe character should work:

del f:\flac\foreign\Yoshida_Brothers\Best_of_Yoshida_Brothers_?_Tsugaru_Shamisen
  • . Wont match the filename unless it has a . in the name – DrStalker Mar 29 '10 at 0:56
  • @DrStalker: It should under Windows. echo hey>a & dir * & dir *.* & del *.* & dir – Dennis Williamson Mar 29 '10 at 1:19
  • @Dave: reformatting is way overkill. It's possible the file was being held open by another process. You didn't post any error messages (and I forgot to ask). – Dennis Williamson Mar 29 '10 at 1:20
  • @DrStalker: Correction Best* did not work. The computer was freshly booted and the directory was not accessed. – Dave Jarvis Mar 31 '10 at 1:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.