From: Bj?rn Holmgren on
"Lynn" <moley_cruz(a)yahoo.com.au> wrote in message
news:1126088069.169369.122730(a)z14g2000cwz.googlegroups.com...
> if i want to use option 16 and option 256, how can i do this?
>

Bitwise OR. Example:

objFolder.MoveHere "C:\Scripts", 16 OR 256

--
Bjýrn Holmgren



From: Lynn on
i used objFolder.MoveHere "C:\Scripts", 16 OR 256
but how come i don't see the progress dialog box ?

From: Bj?rn Holmgren on
"Lynn" <moley_cruz(a)yahoo.com.au> wrote in message
news:1126089373.779910.109750(a)g47g2000cwa.googlegroups.com...
> i used objFolder.MoveHere "C:\Scripts", 16 OR 256
> but how come i don't see the progress dialog box ?
>

That happens to me too, when I use PrimalScript and run the script from
within the IDE. If I run the script standalone (bu double-clicking the vbs
file), the progress dialog appears ok.

--
Bjýrn Holmgren



From: Bj?rn Holmgren on
"Bjýrn Holmgren" <bjohol(a)hotmail.com> wrote in message
news:zaATe.31115$hV3.13191(a)nntpserver.swip.net...
> "Lynn" <moley_cruz(a)yahoo.com.au> wrote in message
> news:1126089373.779910.109750(a)g47g2000cwa.googlegroups.com...
> > i used objFolder.MoveHere "C:\Scripts", 16 OR 256
> > but how come i don't see the progress dialog box ?
> >
>
> That happens to me too, when I use PrimalScript and run the script from
> within the IDE. If I run the script standalone (bu double-clicking the vbs
> file), the progress dialog appears ok.
>


Just one more thing. You should probably use control flag 512 as well. This
one hides the "create new folder?" message.

Also, the code will be much easier to read if you define constants for the
flags:

Const FOF_NOCONFIRMATION = &H10
Const FOF_SIMPLEPROGRESS = &H100
Const FOF_NOCONFIRMMKDIR = &H200
Dim TargetFolder, objShell, objFolder
TargetFolder = "D:\Archive"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace(TargetFolder)
objFolder.MoveHere "C:\Scripts", _
FOF_NOCONFIRMATION Or
FOF_SIMPLEPROGRESS Or _
FOF_NOCONFIRMMKDIR

--
Bjýrn Holmgren



From: Lynn on
Björn Holmgren,
i don't seem to see the progress bar using your code too.

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