From: | Steve Hargreaves |
Date: | 20 Aug 2001 at 07:45:23 |
Subject: | Re: Read Protection |
On 20-Aug-01, Paul Bray said -
>PB It seems ReadFile returns true even if the file is
>PB read protected but then commands like Inkey$ causes
>PB a debugger error or crash if debugger is off,
>PB so is there a way to tell if a file is read protected?
I don't know about checking the protection bits of a file, but you could set the
protection bit before opening the file.
cmd$="C:Protect "+file$+" -r ADD"
Execute_ &cmd$,0,0
If ReadFile (1,file$)
The rest of your code....
Regards
Steve.
========================================================
//Amiga 1200, '060/50, OS3.9, EZ-Tower, Dopus,
// PC Keyboard W EZ-Key, 56K modem, 2+32 Meg,
\\ // NEC 2A Multisync, Logic 3 SpeedMouse, HPDJ610C,
\\/ Sega Controller, & no hair.
=========================================================
They don't print any dirty books in Braille!
-- Tom Sullivan
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie