明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2023|回复: 5

那位大虾能赐教一下用Lisp 程序修改文件夹属性?例如将文件夹改为只读或非只读,或

[复制链接]
发表于 2005-3-31 13:30 | 显示全部楼层 |阅读模式
那位大虾能赐教一下用Lisp 程序修改文件夹属性?例如将文件夹改为只读或非只读,或隐含![br]那位大虾能赐教一下用Lisp 程序修改文件夹属性?例如将文件夹改为只读或非只读,或隐含!
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2005-3-31 15:24 | 显示全部楼层
Use File System Object, get the folder object, then set/get the attributes property Normal 0 Normal file. No attributes are set.
ReadOnly 1 Read-only file. Attribute is read/write.
Hidden 2 Hidden file. Attribute is read/write.
System 4 System file. Attribute is read/write.
Volume 8 Disk drive volume label. Attribute is read-only.
Directory 16 Folder or directory. Attribute is read-only.
Archive 32 File has changed since last backup. Attribute is read/write.
Alias 1024 Link or shortcut. Attribute is read-only.
Compressed 2048 Compressed file. Attribute is read-only.
发表于 2005-3-31 15:29 | 显示全部楼层
加载DosLib6.1吧,其中的 dos_dirattrib 函数就是修改或设置文件夹属性的。更多内容可参看其帮助文件
 楼主| 发表于 2005-4-1 13:03 | 显示全部楼层
怎么得到File System Object,具体语法怎么写?请告知!谢谢!
发表于 2005-4-1 15:18 | 显示全部楼层
发表于 2005-4-6 17:32 | 显示全部楼层
shell 命令能够
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-17 20:25 , Processed in 0.158375 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表