论坛: 病毒专区 标题: 关于VBS的求助/ 复制本贴地址    
作者: ma2751_cn [ma2751_cn]       登录
在VBS里怎么才能把生成的文件属性改为系统,隐藏????

我在网上找不到相关资料~~`

地主 发表时间: 03/19 21:17

回复: bsm [bsm]   论坛用户   登录
Hello...
Hide file can use x.attributes=x.attributes+2
For example:
 dim a,b
 set a=CreateObject("scripting.filesystemobject")
 set b=a.getfile("YOUR PATH HERE")
 b.attributes=b.attributes+2
--------
Also:
 a.createtextfile("THE PATH",true)
 a.attributes=a.attributes+2

But think over when you run the file(s) more than one time...
Ahm~~ maybe use IF..THEN...ELSE can fix the problem...
I dont't know how to do that, either...~
I am a beginer, too!

[此贴被 碇シンジ(bsm) 在 03月20日17时19分 编辑过]


[此贴被 碇シンジ(bsm) 在 03月20日17时16分 编辑过]

B1层 发表时间: 2003-03-20 17:30:16

回复: ma2751_cn [ma2751_cn]      登录
谢谢~~~虽然我E文不是很好,但还能看懂~

谢谢你的帮助~

B2层 发表时间: 03/20 20:46

论坛: 病毒专区

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号