楼上废话太多。。。
set fso=createobject("scripting.filesystemobject")
p=replace(wscript.scriptfullname,wscript.scriptname,"")&"1.txt"
set txt=fso.opentextfile(p,1)
ra=txt.readall
txt.close
msgbox ra
Const ForReading = 1, ForWriting = 2
path = StrReverse(Split(StrReverse(WScript.ScriptfullName), "\", 2)(1))
FileName = path & "\1.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set theFile = fso.OpenTextFile(FileName, ForReading, False)
SS= theFile.ReadALL
theFile.Close
MSGBOX SS ,64,NOW