本帖最后由 zhangop9 于 2011-11-22 00:44 编辑
winxp系统,如果能改一下如下代码就好了- Set objIE = CreateObject("InternetExplorer.Application")
- objIE.Navigate("about:blank")
- strText = objIE.document.parentwindow.clipboardData.GetData("text")
- objIE.Quit
- Wscript.Echo strText
-
- Set objFile = CreateObject("Scripting.FileSystemObject").CreateTextFile("C:\Users\Acer\Desktop\测试.vbs")
-
- objFile.Write strText
- objFile.Close
复制代码 1、如果桌面能用环境变量就好了,
2、如果桌面上有同名文件就在文件名后加1“测试1.vbs” |