怎么找不到filesystemobject.txt
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· 文本 代码 · 共 14 行
TXT
14 行
FileSystemObject并 不 是 一 个 控 件 , 它 只 是 一 个 类 。 你 可 以 选 择 “ 工 程 |引 用 ” , 在 其 中 可 以 选 择 Microsoft Scripting Runtime。 然 后 你 就 可 以 使 用 了 , 如
'Declare variables.
Dim fso As New FileSystemObject
Dim ts As TextStream
'Open file.
Set ts = fso.OpenTextFile(Environ("windir") & "\system.ini")
'Loop while not at the end of the file.
Do While Not ts.AtEndOfStream
Debug.Print ts.ReadLine
Loop
'Close the file.
ts.Close
<END>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?