Click here to Skip to main content
15,898,991 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi my friends,imagine a user copied(or cut) a file or folder(or any object) from a location of your hard drive and pasted 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.
i really need your help.
thanks in advance.
Posted

1 solution

You'll have to ask the user.

Where files used to be or where they currently are isn't stored anywhere that you can lookup. If you are writing a program that copies a file you should know where the files are supposed to be and can keep track of them with variable names.
 
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