>... properties ...from a file in the clipboard.
You mean the whole file actually loaded in the clipboard, or do you mean properties of it copied to the clipboard? If it is the former, I doublt even the full-flegded vb cannot. If it is the latter, vbs can use a hack of using an instance of browser to get the data from the clipboard.
This is a very much tempered function to read clipboard text data. Any thing less than a string will return an empty string to make script behaviour well-tempered.
[tt]
s=getcbstring()
wscript.echo s
function getcbstring()
'getcbstring is very much tempered,
'empty string is returned if it is unable to handle data or nothing is there.
set oie=createobject("internetexplorer.application")
oie.navigate "about:blank"
do while oie.readystate<>4 : wscript.sleep 50 : loop
set oclip=oie.document.parentwindow.clipboarddata
on error resume next
sdata=oclip.getdata("text")
if err.number=0 then
if lcase(typename(sdata))="string" then
getcbstring=sdata
else
getcbstring=""
end if
else
getcbstring=""
end if
on error goto 0
set oclip=nothing
oie.quit
set oie=nothing
end function
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.