你可以透過執行時,利用指令去完成,如下:
<pre class="c" name="code">cscript //nologo 001.vbs > output.txt
很簡單吧..
<pre class="c" name="code">Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile ( strLogFile , ForAppending , True)
for nLoop = 1 to 5
wscript.echo varA
objTextFile.WriteLine( "varA = " & varA )
next
objTextFile.Close
簡單的Sample 給您,如果想要完整的資訊,可以去 MSDN or Microsoft Script Center 找