move file to trash on windows

Klaus Major klaus at major-k.de
Thu Mar 1 07:28:04 EST 2007


Hi friends,

anyone knows of a simple way to move a file to the trash with Rev on  
windows?

Executing a VBS script is not an option.
Using shell("del...") immediately removes the file like "delete  
file..." in Rev does.

I know there is a folder "DRIVELETTER:/RECYCLER" but there is another  
folder in it and I am not
sure if simply moving files to the first of these subfolder(s?) will  
do what I want:
rename file XYZ to "DRIVELETTER:/RECYCLER/(line 1 of the subfolder 
(s?) of RECYCLER)"
???

Looks like there is no specialfolderpath for the trash.

Any hints are very welcome!


Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list