programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: file attributes

From: Stefan Schmiedl <s_at_xss.de>
Date: Thu, 16 Mar 2006 15:11:08 +0100

Dr. Roger Dube (16.03. 08:45):

> 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.

If there is no pre-built interface in SwiftForth, you'll
probably have to use some Windows API functionality, cf.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/retrieving_and_changing_file_attributes.asp

Looks ugly ...

HTH,
s.
>
>
>
> Thanks!
>
>
>
> -- Roger
> --------------------------------------------
> Dr. Roger Dube
> President and Chief Science Officer
> Digital Authentication Technologies, Inc.
> 561.392.7404 (office)
> 561.892.2474 (eFax)
> RogerDube_at_datHQ.com
>
> http://www.datHQ.com
>
> 1900 Glades Road Suite 441
> Boca Raton, FL 33431
>
> ----------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. Any unauthorized review,
> use, disclosure or distribution is prohibited. If you are not the intended
> recipient, please contact the sender by reply email and destroy all copies
> of the original message. Any views expressed in this message are those of
> the individual sender, except where the sender specifically states them to
> be the views of Digital Authentication Technologies, Inc.
>
>
>
>
>
>
>
> ----------------------------------------------------------------------
> 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
> ----------------------------------------------------------------------
>

--
Stefan Schmiedl
+-------------------------------+----------------------------------------+
|Approximity GmbH               | EDV-Beratung Schmiedl                  |
|http://www.approximity.com     | Am Bräuweiher 4, 93499 Zandt, Germany  |
|mailto:stefan_at_approximity.com  | Tel. (09944) 3068-98, Fax -97          |
+-------------------------------+----------------------------------------+
----------------------------------------------------------------------
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 Thu Mar 16 2006 - 06:11:53 PST

This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 03:04:26 PST