Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How recover a file from WINDOWS RECYCLE BIN
Message
From
17/03/1999 06:34:23
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00197963
Message ID:
00198476
Views:
14
Hi Josef!
>
>Thanks for your answer.
>I wanted to use recyle bin cos' I always tend to use operating system possibilities (moving files to it is quick) and I don't want to use dos command ( RUN move /y file1 file2 ).

>Waiting for an answer, I made it allready in my own way. It seems quite simple but it is not moving but copying and deleting.
>Now I have another question. You wrote that you move files. Is a way to really move files using only vfp commands (not by copying source to target and deleteting source), like moving files to WINDOWS RECYCLE BIN (erase xxx recycle). Copying requiers for a moment additional space. Do you use dos 7 command " move /y ".

You can apply API function SHFileOperation for copying, moving and deleting files (to Recycle Bin too). There is a KB article describing how the Recycle Bin stores file (Q136517). Unfortunely there is no references there about recovering deleted files. So, you can move your files with SHFileOperation to custom temporary storage, then move them to the recyle bin either by FoxPro "delete file ... recycle" or by SHFileOperation function.

Visual Basic example of usage SHFileOperation is article Q154005 in KB. You can look to it to save your time with API help. :)
Virtually yours, Dmitry

mailto: me@duginov.com * www.duginov.com * ICQ UIN 6769428
Previous
Reply
Map
View

Click here to load this message in the networking platform