Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: clipboard
Hi Friends, I have small requirement that I want to save my clipboard contents to some folder when ever I Use the Ctrl+C Command on either a folder or a file or a text in a word document or some thing else.
 
I want to save the clipboard contents automatically so that When ever power is gone, I didnot lost my unsaved data or when ever I use Ctrl+X Command I didnot lost my data as power gone immediately because my contents are saved immediately after I press Ctrl+X or Ctrl+C commands.
 

Can We do this with out using any programming I mean Can we do by using any changes to Registry Files..
 
If Possible How can we do this?
 
Thanks in Advance
Ganesh
Posted 8-May-12 22:13pm
Ganeshcse2.3K

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

"Can We do this with out using any programming"
No.
 
It isn't even that easy to do with programming!
You would have to hook into the global Cut and Copy operations (which may not be possible, I've never had to try) or the global Keyboard handler to detect when a clipboard operation is happening.
 
If your power is that likely to fail, then saving on ever copy and cut operation is more likely to cause problems, rather than
solve them as it increases the likelyhood of the power failing during a disk write operation, which is always the most dangerous time. Instead, consider investing in a UPS to allow a smooth save and shut down when the power does fail.
  Permalink  
Comments
Ganeshcse at 10-May-12 3:29am
   
I mean Can we Save automatically as soon as we press Ctrl+X to some folder then the contents are back up. So even if the power is gone, data is not lost as we have them a back up aside.
 
Can we do this by using registry settings.
OriginalGriff at 10-May-12 3:48am
   
No.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 BillWoodruff 173
3 PIEBALDconsult 160
4 CPallini 155
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 9 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100