DOSChangeFileMode

Changes a file's attributes

Local Servers:blocking
Remote Servers:blocking
NetWare Server:4.1, 5.x, 6.x
Platform:NLM
Service:DOS Partition

Syntax

  #include <nwdos.h>  
  
  int DOSChangeFileMode (
     	const char  *name, 
     	LONG        *attributes, 
     	LONG         function,
     	LONG         newAttributes);
  

Parameters

name
(IN) Points to the path, including the file name.
attributes
(OUT) Points to the returned attributes of the file.
function
(IN) Specifies the type of attributes that you want to change:
  • 0 Read attributes
  • 1 Set attributes
newAttributes
(IN) Points to the new attributes to set for name.