Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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:

f:\flac\foreign\Yoshida_Brothers\Best_of_Yoshida_Brothers_|_Tsugaru_Shamisen

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*
  • FileASSASSIN
  • Cannot delete folder

Other ideas?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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

del f:\flac\foreign\Yoshida_Brothers\Best_of_Yoshida_Brothers_?_Tsugaru_Shamisen
share|improve this answer
    
. 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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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