![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Didn't catch your name, wheath, but that worked perfectly! Thanks!
- Roger
_____
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com] On Behalf Of
wheath_at_comcast.net
Sent: Saturday, March 18, 2006 1:28 PM
To: sftalk_at_forth.com
Subject: [sftalk] Re: file attributes
Roger,
2 Import: SetFileAttributes ( Az Nattib - TF )
it expects a zero terminated file name and a file attribute flag on the
stack
and returns FALSE if it fails.
The file attributes can be OR'd together to set more than one at once.
typical attributes are
FILE_ATTRIBUTE_NORMAL
FILE_ATTRIBUTE_HIDDEN
FILE_ATTRIBUTE_READONLY
-------------- Original message --------------
From: "Dr. Roger Dube" <rogerdube_at_dathq.com>
> How does one change the Windows file attributes of a file (for example, to
> Read Only)? I can see how to do it within SwiftForth (R/O and W/O) but
> these do not alter the final file properties that Windows lists. After
> creating and writing to a file (and then closing it), I would like to
change
> the file's attributes to read only.
>
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Sat Mar 18 2006 - 12:45:41 PST
This archive was generated by hypermail 2.2.0 : Thu Dec 04 2008 - 03:04:21 PST