CYGWIN UNIX FILE PATH LEAVES FILES UNDELETABLE THROUGH WIN7

Dave Cottlehuber dave@muse.net.nz
Thu Aug 12 23:11:00 GMT 2010


> After the deletions, only one directory and file were unable to be deleted,
> the file named " nul " in the directory " dev ".

This is well known (if you're an old timer - think cp/m, then DOS)  as
it's a reserved word. CON: NUL: LPT!: are all examples of this. The
solution is easy:

:: for files
del \\.\c:\cygwin\dev\nul
:: for dirs
rd \\.\c:\cygwin\dev\con

more info @ http://support.microsoft.com/kb/120716

cheers, Dave

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list