Moving a Folder to Recycle Bin in Windows XP
Ken Ray
kray at sonsothunder.com
Sat Oct 11 01:05:21 EDT 2008
On 9/16/08 3:49 PM, "Philip Usher" <philipusher at aim.com> wrote:
> Is it possible to use revMoveFolder to move a folder to the Recylcle
> Bin in Windows XP and what would the destination folder path be?
I don't think you can use revMoveFolder, but you can run this VBScript using
"do <script> as VBScript" from Rev 2.9 or higher:
Const RECYCLE_BIN = &Ha&
Const FILE_TO_MOVE = "C:\yourFileGoesHere.txt"
Set objShell = CreateObject("Shell.Application")
Set recycleFolder = objShell.NameSpace(RECYCLE_BIN)
recycleFolder.MoveHere FILE_TO_MOVE
result = Err.Number
HTH,
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list