mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 09:02:22 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			288 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			288 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
Program Example42;
 | 
						|
 | 
						|
{ This program demonstrates the FileSetAttr function }
 | 
						|
 | 
						|
Uses sysutils;
 | 
						|
 | 
						|
Begin
 | 
						|
  If FileSetAttr ('ex40.pp',faReadOnly or faHidden)=0 then
 | 
						|
    Writeln ('Successfully made file hidden and read-only.')
 | 
						|
  else
 | 
						|
    Writeln ('Coulnd''t make file hidden and read-only.');
 | 
						|
End. |