ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Utility to handle files/folders with illegal characters

<< < (2/5) > >>

Ath:
There are Linux win32 utilities that have bash shell with ls and rm commands.
-MilesAhead (May 08, 2015, 05:43 AM)
--- End quote ---
Cygwin ?

def:
There are Linux win32 utilities that have bash shell with ls and rm commands.  I haven't used it in some time.  I'm not sure which is the latest or most friendly to Windows newer than XP.  Once the bash shell is running just use rm command to remove files and/or folders

http://www.cyberciti.biz/faq/linux-rm-a-folder-and-contents/
-MilesAhead (May 08, 2015, 05:43 AM)
--- End quote ---
I downloaded Cygwin but it couldn't delete the file in question:


--- ---How can I fix_repair a corrupted PDF file? - Super User.html                      
How can I fix_repair a corrupted PDF file? - Super User-Dateien

$ rm "How can I fix_repair a corrupted PDF file? - Super User.html"
rm: cannot remove ‘How can I fix_repair a corrupted PDF file? - Super User.html’: No such file or directory

MilesAhead:
There are Linux win32 utilities that have bash shell with ls and rm commands.  I haven't used it in some time.  I'm not sure which is the latest or most friendly to Windows newer than XP.  Once the bash shell is running just use rm command to remove files and/or folders

http://www.cyberciti.biz/faq/linux-rm-a-folder-and-contents/
-MilesAhead (May 08, 2015, 05:43 AM)
--- End quote ---
I downloaded Cygwin but it couldn't delete the file in question:


--- ---How can I fix_repair a corrupted PDF file? - Super User.html                      
How can I fix_repair a corrupted PDF file? - Super User-Dateien

$ rm "How can I fix_repair a corrupted PDF file? - Super User.html"
rm: cannot remove ‘How can I fix_repair a corrupted PDF file? - Super User.html’: No such file or directory
-def (May 08, 2015, 07:13 AM)
--- End quote ---

I would try ls using a pattern so that only the file(s) you wish to delete match.  Then use the same pattern with rm.  For example
ls -l How*

def:
I would try ls using a pattern so that only the file(s) you wish to delete match.  Then use the same pattern with rm.  For example
ls -l How*-MilesAhead (May 08, 2015, 07:19 AM)
--- End quote ---


--- ---$ ls -l
ls: cannot access How can I fix_repair a corrupted PDF file? - Super User-Dateien: No such file or directory
ls: cannot access How can I fix_repair a corrupted PDF file? - Super User.html: No such file or directory
total 19940148
----rwx---+ 1 def None    2304492 Dec 24  2007 9783827241993bsp.pdf
(several other files...)
-?????????? ? ?   ?             ?            ? How can I fix_repair a corrupted PDF file? - Super User.html
d?????????? ? ?   ?             ?            ? How can I fix_repair a corrupted PDF file? - Super User-Dateien
(several other files...)

$ ls -l How*
ls: cannot access How can I fix_repair a corrupted PDF file? - Super User.html: No such file or directory
ls: cannot access How can I fix_repair a corrupted PDF file? - Super User-Dateien: No such file or directory

$ rm -r How*
rm: cannot remove ‘How can I fix_repair a corrupted PDF file? - Super User.html’: No such file or directory
rm: cannot remove ‘How can I fix_repair a corrupted PDF file? - Super User-Dateien’: No such file or directory

Somehow even Cygwin chokes on this file name...

4wd:
Try running chkdsk.exe /f on the volume, it can sometimes fix these problems by removing the (illegally named) file.

If the file gets deleted, it might be reincarnated (with a new name) by looking at any filecheck.* that was created.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version