如何判断VBS opentextfile()打开文件是否成功?
ConstForReading=1SetobjFSO=CreateObject("Scripting.FileSystemObject")SetobjFile=objFS...
Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Scripts\Test.txt", ForReading)
以上为VBS中打开C:\Scripts\Test.txt,如何判断此txt文件打开成功与否?
请高手指点! 展开
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Scripts\Test.txt", ForReading)
以上为VBS中打开C:\Scripts\Test.txt,如何判断此txt文件打开成功与否?
请高手指点! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询