CHMOD

SmallBASIC syntax groups: 


File command CHMOD


10
20  CHMOD file, mode
30
Change permissions of a file. See also ACCESS.


See examples


If there is insufficient information on this page and you wish learn more about CHMOD, please send an email to smallbasic@gmail.com. You can help to improve information about CHMOD by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

  • file – A string expression that follows OS file naming conventions.
  • mode – Compatible with system call chmod()‘s ‘mode’ parameter.
' Make myfile available to anyone (read/write)
CHMOD "myfile.bas", 0o666
...
' Make myfile available to anyone (execute/read/write)
CHMOD "myfile.bas", 0o777