Batch loading a text from file and copying it to clipboard

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
silent
Posts: 44
Joined: 28 Oct 2011 14:40

Batch loading a text from file and copying it to clipboard

#1 Post by silent » 23 Jul 2012 12:55

Hi,
I want to make a batch program that would load a text from a file and then copy it so when i use ctrl + v it will paste the text from the file.I know how to get a text from a file but i dont know if it is possible to set it to ctrl + v.If its not,then in what languages i can make that ?

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Batch loading a text from file and copying it to clipboa

#2 Post by Squashman » 23 Jul 2012 12:58

I believe both Vista and Windows 7 come with the CLIP command to copy output to the Clipboard.
You can then use CTRL + V to paste it into Notepad or wherever else.
http://www.windows7hacker.com/index.php ... ows-7-tip/

silent
Posts: 44
Joined: 28 Oct 2011 14:40

Re: Batch loading a text from file and copying it to clipboa

#3 Post by silent » 23 Jul 2012 13:03

Well i tried it,and a other thing and it doesnt copies the text.
It doesnt copy :(
Also tried something with C:/ on start of the line but it also didnt worked.
I want to do it on WinXP and on other windows like win7.
Tried Dos2Clip but it only works when i type something in the dos2clip.exe,and i cant do what i want :(

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Batch loading a text from file and copying it to clipboa

#4 Post by Squashman » 23 Jul 2012 13:14

silent wrote:Well i tried it,and a other thing and it doesnt copies the text.
It doesnt copy :(
Also tried something with C:/ on start of the line but it also didnt worked.
I want to do it on WinXP and on other windows like win7.
Tried Dos2Clip but it only works when i type something in the dos2clip.exe,and i cant do what i want :(

What did you try and how did you try to use it?

silent
Posts: 44
Joined: 28 Oct 2011 14:40

Re: Batch loading a text from file and copying it to clipboa

#5 Post by silent » 23 Jul 2012 13:19

Problem solved,downloaded CLIP.exe and now it works fine.

Post Reply