From: Lynn on
Hi,
how can i modify this code below to enable overwriting of target
folders if it exists?

Const FOF_CREATEPROGRESSDLG = &H0&
TargetFolder = "D:\Archive"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace(TargetFolder)
objFolder.MoveHere "C:\Scripts", FOF_CREATEPROGRESSDLG

From: Bj?rn Holmgren on
According to the following article, option flag 16 looks promising:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/pla
tform/shell/reference/objects/folder/movehere.asp

--
Bjýrn Holmgren


"Lynn" <moley_cruz(a)yahoo.com.au> wrote in message
news:1126065817.954060.136590(a)z14g2000cwz.googlegroups.com...
> Hi,
> how can i modify this code below to enable overwriting of target
> folders if it exists?
>
> Const FOF_CREATEPROGRESSDLG = &H0&
> TargetFolder = "D:\Archive"
> Set objShell = CreateObject("Shell.Application")
> Set objFolder = objShell.NameSpace(TargetFolder)
> objFolder.MoveHere "C:\Scripts", FOF_CREATEPROGRESSDLG
>


From: Lynn on
Björn Holmgren ,
it works ! I serached google for longtime but not able to find a
solution.
How did you managed to find this?

From: Bj?rn Holmgren on
"Lynn" <moley_cruz(a)yahoo.com.au> wrote in message
news:1126086537.436950.56040(a)g14g2000cwa.googlegroups.com...
> Bjýrn Holmgren ,
> it works ! I serached google for longtime but not able to find a
> solution.
> How did you managed to find this?


You need to learn how to use MSDN online ;-)

Go to http://msdn.microsoft.com/library
In the search box, enter "MoveHere"
Click second link.

--
Bjýrn Holmgren



From: Lynn on
if i want to use option 16 and option 256, how can i do this?

 |  Next  |  Last
Pages: 1 2 3
Prev: Wake on LAN
Next: Color printer help