:redir > C:\path\to\my\file.txt :version :redir END
and then open the file and copy the data from there. If you need to do this automatically in a Vim script, you can force Vim to read the file into the buffer and copy the contents to the + register. However, this is a lot of work, and I suspect that you want this to be a one-time appointment for which doing it manually would be sufficient.
source share