Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: How to access files ' properties under Windows

From: petr:krenzelok:trz:cz at: 19-Apr-2002 14:31

Coussement Christophe wrote:
>Hi: > >I'm looking for the library where I can find >the functions which access the files properties >(created/modified/accessed date, attributes, ...) >under Windows NT. >More specifically to make a file read only or to check >its read only status from a REBOL routine! > >Any help welcome :) > >Thanks, > >>==christophe >> >
I don't know if anything else can be known about the file in Rebol by default, maybe using some special set/get-modes, but I looked at how dir? function works ... try e.g. following: ble: make port! %user.r query ble probe ble .... as you can see, the file info is load in the port structure. Maybe some /state item could be filled in future by platform dependant info, if not available already? You will probably need to try some Win32 API functions to achieve what you described ... -pekr-