用vbs實現(xiàn)將剪切板的unix格式的內(nèi)容處理成pc格式的代碼
更新時間:2007年10月24日 12:02:28 作者:
處理QQ里復制的文本'復制QQ里的文本到記事本有事可能會有黑框框...(請復制后運行本腳本)
set ws=createobject("wscript.shell")
set fso=createobject("scripting.filesystemobject")
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("about:blank")
s = objIE.document.parentwindow.clipboardData.GetData("text")
objie.quit
set file=fso.createtextfile("tmp.txt")
file.write s
file.close
ws.run "cmd /c more tmp.txt>test.txt",0,true
fso.deletefile "tmp.txt"
ws.run "notepad.exe test.txt"
set ws=createobject("wscript.shell")
set fso=createobject("scripting.filesystemobject")
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("about:blank")
s = objIE.document.parentwindow.clipboardData.GetData("text")
objie.quit
set file=fso.createtextfile("tmp.txt")
file.write s
file.close
ws.run "cmd /c more tmp.txt>test.txt",0,true
fso.deletefile "tmp.txt"
ws.run "notepad.exe test.txt"
相關(guān)文章
利用計劃任務和VBS腳本實現(xiàn)自動WEB共享文件夾里的文件
其實沒有題目寫得那么復雜,就是用計劃任務每隔一段時間調(diào)用VBS腳本,刷新生成一個文件列表文件用于WEB服務調(diào)用。2008-12-12VBS教程:函數(shù)-LTrim、RTrim 和 Trim 函數(shù)
VBS教程:函數(shù)-LTrim、RTrim 和 Trim 函數(shù)...2006-11-11vbs列出內(nèi)網(wǎng)的中計算機(工作組也可以)
用vbs列出內(nèi)網(wǎng)的中計算機(工作組也可以)的代碼,需要的朋友可以參考下。2011-05-05