Dim fso,WshShell
Set fso=CreateObject("Scripting.FileSystemObject")
fso.CreateTextFile "C:\test.txt"
set WshShell=Wscript.CreateObject("WScript.WshShell")
Do
fso.CopyFile "C:\test.txt","D:\test.txt"
WScript.Sleep 6000
Loop
这段程序运行时会显示无法找到名为"WScript.WshShell"的”automation"的类
为什么会这样???
Set fso=CreateObject("Scripting.FileSystemObject")
fso.CreateTextFile "C:\test.txt"
set WshShell=Wscript.CreateObject("WScript.WshShell")
Do
fso.CopyFile "C:\test.txt","D:\test.txt"
WScript.Sleep 6000
Loop
这段程序运行时会显示无法找到名为"WScript.WshShell"的”automation"的类
为什么会这样???
scriptlover
Be with script forever!!
Be with script forever!!
