- Dim fso,f,fpath
-
- fpath = "D:\Program Files\aa\bb.exe"
- Set fso = CreateObject("Scripting.FileSystemObject")
-
- If fso.FileExists(fpath) Then
- Set f = fso.GetFile(fpath)
- If f.Size > 10*1024 Then
- CreateObject("wscript.shell").run fpath
- Else
- WScript.Echo "此文件已破坏请重新设置"
- End If
- Else
- WScript.Echo "此文件已破坏请重新设置"
- End If
复制代码
|