🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sunyab.tutorial
1 messages
1 total messages Started by kevin lyda Thu, 02 Aug 1990 03:43
turbo pascal 5.0 SetFAttr help....
#1
Author: kevin lyda
Date: Thu, 02 Aug 1990 03:43
35 lines
1848 bytes
this program compiles perfectly and runs with the problem described at the
end of the code.

{$A+,B-,D+,E+,F-,I+,L+,N-,O-,R-,S+,V+}
{$M 16384,0,327680}
program test;
 
uses
  dos;
 
var
  log : text;
  f : file;
  attr : word;
 
begin
  assign(f,'c:\language');
  assign(log,'c:\tmp\log');
  rewrite(log);
  setfattr(f,hidden);
  writeln(log,doserror);           {----> 0                         }
  getfattr(f,attr);                     {no dos error from setfattr }
  writeln(log,attr,' ',doserror);  {----> 18 0                      }
  setfattr(f,directory);                {hidden directory, no dos   }
                                        {error from getfattr        }
  writeln(log,doserror);           {-??-> 5                         }
  getfattr(f,attr);                     {dos error `file access     }
                                        {denied' from setfattr      }
  writeln(log,attr,' ',doserror);  {----> 18 0                      }
  close(log);                           {directory is still hidden..}
end.
 
question: why is file access denied? when i hide an archive file i
can unhide it later, but not directories. is this a bug and more
importantly, is there a way i can hide AND unhide directories?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads