RE: File Creator under WIN32 environment
- From: rvm@xxxxxxxxx (Bob McConnell)
- Date: Wed, 22 Aug 2007 15:21:39 -0400
-----Original Message-----
From: Chas Owens [mailto:chas.owens@xxxxxxxxx]
Sent: Wednesday, August 22, 2007 3:14 PM
To: Gunnar Hjalmarsson
Cc: beginners@xxxxxxxx
Subject: Re: File Creator under WIN32 environment
On 8/22/07, Gunnar Hjalmarsson <noreply@xxxxxxxxx> wrote:
Wagner, David --- Senior Programmer Analyst --- WGO wrote:translate that
What on earth is an "OR-ed combination"? Anybody who can
para in the POD to English ( or Swedish ;-) )?
Here is an explanation in Perl:
#!/usr/bin/perl
use strict;
use warnings;
use constant READ_ONLY => 1;
use constant ARCHIVED => 2;
use constant HIDDEN => 4;
I believe the fourth flag is SYSTEM. Is there a value for that?
No, I don't like assumptions.
These are the flags manipulated by the DOS "attrib" utility, which also
works in a console on most versions of MS-Windows. "attrib +r file.ext"
will set the read-only attribute. They also show up at the bottom of the
properties dialogue, although SYSTEM is missing there. Yes, they are
left over from MS-DOS, but still have some usefulness.
Bob McConnell
.
- Follow-Ups:
- Re: File Creator under WIN32 environment
- From: Chas Owens
- Re: File Creator under WIN32 environment
- References:
- File Creator under WIN32 environment
- From: Wagner, David --- Senior Programmer Analyst --- WGO
- Re: File Creator under WIN32 environment
- From: Gunnar Hjalmarsson
- Re: File Creator under WIN32 environment
- From: Chas Owens
- File Creator under WIN32 environment
- Prev by Date: Re: File Creator under WIN32 environment
- Next by Date: Help on cleanining strings
- Previous by thread: Re: File Creator under WIN32 environment
- Next by thread: Re: File Creator under WIN32 environment
- Index(es):
Relevant Pages
|
Loading