首页 > 其他 > 详细

本地vbs调试快速显示输出

时间:2014-07-31 16:11:36      阅读:391      评论:0      收藏:0      [点我收藏+]
function setClipBoard(str)
    Set WshShell = CreateObject("WScript.Shell")
    Set oExec = WshShell.Exec("clip")
    Set oIn = oExec.stdIn
    oIn.WriteLine str
    oIn.Close

    Do While oExec.Status = 0
            WScript.Sleep 100
    Loop

    Set oIn = Nothing
    Set oExec = Nothing
end function


dim fso 
dim files
set fso = CreateObject("Scripting.FileSystemObject")
set files = fso.getfolder("C:\Data").files

dim result

for each file in files
    if lcase(fso.GetExtensionName(file.path)) = "mdf" then
        result = result & file.name & vbcrlf
    end if
next

setClipBoard(result)

 

存为*.vbs,双击即可。

 

本地vbs调试快速显示输出,布布扣,bubuko.com

本地vbs调试快速显示输出

原文:http://www.cnblogs.com/nanfei/p/3880588.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!