Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Delete File to the Recycle Bin

 Keywords:  Allow undo File Delete FileDelete Recycle Bin

Question:

What is the trick to moving stuff to the Recycle Bin so it actually shows up in there? I would like to delete something. But, would like to be able to recover it if the need arises. I tried using the FileDelete function, but the file doesn't show up in the Recycle Bin.

Answer:

Use the Shell Operation Extender function aFileDelete with the flag 64, to allow an undo....
AddExtender("wwsop34i.DLL")
AllowUndo= 64
aFIleDelete("C:\Temp\abc.txt",AllowUndo)

Article ID:   W15163