【发布时间】:2013-02-24 23:57:13
【问题描述】:
我对 VBscript 非常陌生,并且努力学习所有概念。在我的练习中,我一直有一个疑问。
dim a,b,c
set a = CreateObject("scripting.filesystemobject") 'initiate the file system object'
set b = a.GetFolder("E:\test") 'returns a object . and for the instance that varaiable b refers to that returned object'
c = b.datecreated 'accesing and storing the property to a variable /C/'
msgbox "folder: " &c
当我执行此操作时,没有错误消息并且工作正常。但是当我改变时
c = b.datecreated TO set c = b.datecreated 比
它显示了这个错误:
> object required:'datecreated'
我知道这是一件基本的事情,但有时小事情会让你学到很多东西并对未来有所帮助。
【问题讨论】: