delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <474CB395.5020200@cygwin.com> |
Date: | Tue, 27 Nov 2007 19:17:25 -0500 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: file permission problem |
References: | <474cb070 DOT 08bd100a DOT 7a16 DOT 52b9 AT mx DOT google DOT com> |
In-Reply-To: | <474cb070.08bd100a.7a16.52b9@mx.google.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Win Tong wrote: > Hi, > > I have a difficult problem which I don't know how to solve and I'll > appreciate any help. > I'm using windows XP Home with cygwin and I want to remove the directory > 'no_bulk' and all the files within it. > > The following commands show me something like this > > $ rm -r no_bulk > rm: cannot remove `no_bulk/con': No such file or directory > > $ ls -l no_bulk > ls: no_bulk/con: No such file or directory > total 0 > ---------- 0 ???????? ???????? 0 Jan 1 1970 con > > I tried to delete it through windows explorer as a administrator but it > say cannot find the specified file even though it shows the file and say > the file has 71kB and modified on 15/09/2007. > > I've search google but cannot find anything that helps. > This is not the only directory that has this wired file and I want to > get rid of them. > please help 'con' is a reserved Windows file name. You must have worked pretty hard to create it since you can't create it by normal means. Anyway, you can get rid of it using the '//?/<fully qualified path>' syntax. For example: bash-3.2$ mkdir foo bash-3.2$ cd foo /cygdrive/f/foo bash-3.2$ touch '//?/f:/foo/con' bash-3.2$ ls -l ls: con: No such file or directory total 0 ---------- 0 ???????? ???????? 0 Dec 31 1969 con bash-3.2$ rm '//?/f:/foo/con' bash-3.2$ ls -l total 0 -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |