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 - 10:28:37 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 08-Feb-2012. Archive updated nightly.