This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to delete file "nul"?
- From: 3APA3A <3APA3A at SECURITY dot NNOV dot RU>
- To: Michael Pfeiffer <michael dot pfeiffer at scch dot at>
- Cc: cygwin at cygwin dot com
- Date: Fri, 2 Jul 2004 14:30:05 +0400
- Subject: Re: How to delete file "nul"?
- Organization: http://www.security.nnov.ru
- References: <loom.20040702T111613-726@post.gmane.org>
- Reply-to: 3APA3A <3APA3A at SECURITY dot NNOV dot RU>
Dear Michael Pfeiffer,
This problem is not cygwin related. You can delete files like this by
using "UNC" style of filename (this style prevents use of DOS devices
and bypasses Windows 256 character limit for filename). For example, to
delete file from the root of d:\ drive use
del \\.\d:\nul
--
~/ZARAZA
http://www.security.nnov.ru/
--Friday, July 2, 2004, 1:29:02 PM, you wrote to cygwin@cygwin.com:
MP> Hi
MP> bash allows to pipe to a file named "nul" e.g.:
MP> echo test > nul
MP> bash-2.05b$ ls -l
MP> total 1
MP> -rwxrwxrwx 1 pfeiffer mkgroup- 4 Jul 2 10:00 nul
MP> The problem is that this file can not be deleted.
MP> I was not able to delete it using the "rm" command in
MP> bash, or "del" in a windows command line or the
MP> windows explorer.
MP> Any idea how this file can be deleted, without
MP> booting an alternative OS?
MP> Regards,
MP> Michael
MP> --
MP> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
MP> Problem reports: http://cygwin.com/problems.html
MP> Documentation: http://cygwin.com/docs.html
MP> FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/