realbasic-nug
[Top] [All Lists]

Re: Copying files with progress bars

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Copying files with progress bars
From: "Joel Rosenblum" <pyropostal at hotmail dot com>
Date: Tue, 22 May 2001 07:16:04
How abut the equivalent under Win32 systems?

Does anybody now how to ask MS Windows explorer to do the copy
command instead of relying on the mysteries of the .copyfileto RB
folderitem method?


why not just use the shell?

Sub CopyFileTo(src as folderItem, dest as folderItem)
 dim s as shell
 s=new shell
 s.execute "copy "+src.absolutePath+" "+dest.absolutePath
End Sub

and i believe that even works for whole directories... just make sure to delete the file in the dest place if there is one, before copying to there, i don't know how to tell the shell to replace it.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




<Prev in Thread] Current Thread [Next in Thread>