Copy to clipboard with BAT

Solved
Dumas Ph Posted messages 50 Status Membre -  
 moi -
Hello,

I'm looking for a command that would copy a phrase or an email address (not a file, I can do that with xcopy) to the clipboard?

Let me explain, I just need to double-click on a xxx.bat file, and it would execute the magic command that would copy my email address to the clipboard... Then I could just paste it into another application...
Of course, the email address is always the same and would be written in the xxx.bat file...

Do you have that in stock?

Thank you and have a great day.

Configuration: Windows XP / Internet Explorer 7.0

2 réponses

boly38 Posted messages 267 Registration date   Status Membre Last intervention   80
 
Hello,
that reminds me of a question

https://forums.commentcamarche.net/forum/affich-21034619-batch-aide-pour-le-copier-coller

maybe CLIP?
 echo toto@yoyo.fr > contact.log clip < contact.log 


strangely, a direct echo seems not to work..
3
moi
 
je te remercie
0
Dumas Ph Posted messages 50 Status Membre 1
 
Wow.... Great, it works!
Thank you very much.

Actually, I had already seen this post and I had tried Clip by myself and it didn't work... but with a buffer file, it's awesome!
Thanks again...
:o)
1