Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi my friends,imagine a user copy(or cut) a file or folder(or any object) from a location of your hard drive and paste it to another place,
(for example from drive "C:\test\" to "D:\new\"),
How can you get the source path and the destination path of that file.
thanks in advance.
Posted
Updated 1-Jan-10 21:32pm
v2

1 solution

I don't know about monitoring the clipboard, but you could set up a FileSystemWatcher[^], to wait for a file to be created and one to wait for a file to be deleted. If they are the same file (an exercise left up to the reader), you will have your source and destination.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900