用vbs實(shí)現(xiàn)讀取文本文件的方法
更新時間:2007年10月23日 21:54:48 作者:
vbs讀取文件方法Function readfile(readfilepath)
'On Error Resume Next
Set fs = CreateObject("Scripting.FileSystemObject")
Set file = fs.OpenTextFile(readfilepath, 1, false)
readfile=file.readall
file.close
set fs=nothing
end Function
'On Error Resume Next
Set fs = CreateObject("Scripting.FileSystemObject")
Set file = fs.OpenTextFile(readfilepath, 1, false)
readfile=file.readall
file.close
set fs=nothing
end Function
相關(guān)文章
用VBS設(shè)置靜態(tài)IP和DNS服務(wù)器地址的代碼
用VBS設(shè)置靜態(tài)IP和DNS服務(wù)器地址的代碼,今天別人問我的,怕以后忘記,記錄下來。2011-01-01ActiveX部件不能創(chuàng)建對象:dm.dmsoft代碼:800A01AD
vbs調(diào)用插件報:ActiveX部件不能創(chuàng)建對象,代碼:800A01AD,一般是因?yàn)椴《緦?dǎo)致dll文件丟失或者64系統(tǒng)問題導(dǎo)致,需要的朋友可以參考下2019-12-12vbscript,jscript腳本編程教學(xué)(1)
vbscript,jscript腳本編程教學(xué)(1)...2007-03-03