_chmod.c

来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 21 行

C
21
字号
#include <stdio.h>
#include <io.h>
#include <dos.h>
#include <stdlib.h>
void main()
{
int attr;
attr=_chmod("c:\\config.sys",0);
if (attr==-1)
  {
  printf("config.sys is not found");
  exit(1);
  }
if (attr & FA_RDONLY)
  printf("config.sys is Read only\n");
else printf("config.sys is Writable\n");
if (attr & FA_HIDDEN)
  printf("config.sys is Hidden file\n");
else printf("config.sys is Visible file\n");
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?