私は 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
よりset c = b.datecreated
も
次のエラーが表示されます。
> object required:'datecreated'
それが基本的なことであることは知っていますが、小さなことが多くのことを学び、将来に役立つことがあります。