How To Send Files to the Recycle Bin

Exención de responsabilidades de contenido KB retirado

Este artículo se refiere a productos para los que Microsoft ya no ofrece soporte técnico. Por tanto, el presente artículo se ofrece "tal cual" y no será actualizado.

Summary

The 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 Information

The following example uses the ERASE command to place a file in the Recycle Bin:
   ERASE Test.txt RECYCLE
The following example uses the DELETE FILE command to place a file in the Recycle Bin:
   DELETE FILE Test.txt RECYCLE
NOTE: The RECYCLE clause is ignored under Windows NT 3.51. Files are always permanently deleted under Windows NT 3.51.
Propiedades

Id. de artículo: 155081 - Última revisión: 07/13/2004 - Revisión: 1

Comentarios