WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Recycle Bin

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2002:09:05:13:50:10
Last Updated: 2002:09:05:13:50:10