怎样改变文本文件的只读属性?马上给分!

解决方案 »

  1.   

    setfileattributes(pchar('d:\ks\txt.rar'),FILE_ATTRIBUTE_normal);
      

  2.   

    用Function FileSetAttr(const filename:string;Attr:integer):integer;
    查一下帮助
      

  3.   

    faReadOnly 1 Read-only files Current user does not have write access.
    faHidden 2 Hidden files File name begins with ".".
    faSysFile 4 System files File is socket, symbolic link, device file, or FIFO.
    faVolumeID 8 Volume ID files Not used.
    faDirectory 16 Directory files Directory.
    faArchive 32 Archive files Not used.
    faSymLink 64 Symbolic link File is a symbolic link.
    faAnyFile 71 Any file Any file.