www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/23/13:57:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 23 Jan 2002 19:56:39 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: touch
Message-ID: <20020123195639.I11608@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <200201231825 DOT g0NIPKa09236 AT abrell DOT ac DOT upc DOT es> <20020123182841 DOT GB16029 AT redhat DOT com> <3C4F03CC DOT 2090001 AT ece DOT gatech DOT edu>
Mime-Version: 1.0
In-Reply-To: <3C4F03CC.2090001@ece.gatech.edu>
User-Agent: Mutt/1.3.22.1i

On Wed, Jan 23, 2002 at 01:41:16PM -0500, Charles Wilson wrote:
> >>      h=CreateFile("c:\\bin\\cygwin",
> 
> 
> I think you need to pass a non-shell-escaped filename to the windows 
> CreateFile function:  h=CreateFile("c:\bin\cygwin",...

Ouch.  Think "escape char"...

> 
> >>              GENERIC_READ|GENERIC_WRITE,
> >>              FILE_SHARE_READ,
> >>              NULL,
> >>              OPEN_EXISTING|OPEN_ALWAYS,
> >>              FILE_FLAG_BACKUP_SEMANTICS,
> >>              NULL);

I'd suggest to read the MSDN reference for CreateFile(), especially take
care for the description of the `dwCreationDisposition' parameter...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019