How To Send Files to The Recycle BinLast reviewed: January 10, 1997Article ID: Q155081 |
The information in this article applies to:
SUMMARYThe ERASE and DELETE FILE commands can be used to programmatically delete a file or files. In previous versions of FoxPro, the ERASE and DELETE FILE commands would always permanently delete the files from disk. However, in Visual FoxPro version 5.0, the ERASE and DELETE FILE commands have an optional RECYCLE clause that will place the files in the Windows 95 or Windows NT 4.0 Recycle Bin.
MORE INFORMATIONThe following example uses the ERASE command to place a file in the Recycle Bin:
ERASE Test.txt RECYCLEThe following example uses the DELETE FILE command to place a file in the Recycle Bin:
DELETE FILE Test.txt RECYCLENOTE: The RECYCLE clause is ignored under Windows NT 3.51. Files are always permanently deleted under Windows NT 3.51.
|
KBCategory: kbprg kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |