I
I
Ivan Melnikov2019-06-17 18:11:44
cmd/bat
Ivan Melnikov, 2019-06-17 18:11:44

How to take a slice of a line in cmd that is on the clipboard?

How to take a slice of a line in cmd that is on the clipboard?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2019-06-17
@yellowmew

Create clipboard.vbs file

Set objHTML = CreateObject("htmlfile")
text = objHTML.ParentWindow.ClipboardData.GetData("text")
Wscript.Echo text

and on the command line use
cscript clipboard.vbs
to get clipboard data
PS why and why - don't ask, I don't even want to remember

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question