touch

Corinna Vinschen cygwin@cygwin.com
Wed Jan 23 11:03:00 GMT 2002


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@cygwin.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/



More information about the Cygwin mailing list