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"