Hide confirmation dialog to appear when a file is copied using scr

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I have this vb script running on XP - SP2

I'm using the FOF_SILENT flag to hide the progress dialog
but It sill diaplays.

Here is the code:
Set oApp = CreateObject("Shell.Application")
Set oZipFolder = oApp.Namespace("C:\Temp\")
oZipFolder.MoveHere "C:\ABC\XYZ.TXT\", FOF_SILENT

Please help.
Thank you
 
Add this at the top:

Const FOF_SILENT = &H4&

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Hi I have this vb script running on XP - SP2

I'm using the FOF_SILENT flag to hide the progress dialog
but It sill diaplays.

Here is the code:
Set oApp = CreateObject("Shell.Application")
Set oZipFolder = oApp.Namespace("C:\Temp\")
oZipFolder.MoveHere "C:\ABC\XYZ.TXT\", FOF_SILENT

Please help.
Thank you
 
There are many other options that you can use. See also:

MoveHere Method (Folder):
http://msdn2.microsoft.com/en-us/library/ms630715.aspx

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Add this at the top:

Const FOF_SILENT = &H4&

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Hi I have this vb script running on XP - SP2

I'm using the FOF_SILENT flag to hide the progress dialog
but It sill diaplays.

Here is the code:
Set oApp = CreateObject("Shell.Application")
Set oZipFolder = oApp.Namespace("C:\Temp\")
oZipFolder.MoveHere "C:\ABC\XYZ.TXT\", FOF_SILENT

Please help.
Thank you
 
Hi Ramesh,

Thank you for your response,
I alredy have Const FOF_SILENT = &H4& and I have
tryed all the other options from the web site and still have
the pop up dialog.

Is it a bug in the script dll?

Ben.
 
Ben,

I don't see that in the original code you posted.

It works fine here after adding the "Const" line. No progress bar displayed.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Hi Ramesh,

Thank you for your response,
I alredy have Const FOF_SILENT = &H4& and I have
tryed all the other options from the web site and still have
the pop up dialog.

Is it a bug in the script dll?

Ben.
Ramesh said:
There are many other options that you can use. See also:

MoveHere Method (Folder):
http://msdn2.microsoft.com/en-us/library/ms630715.aspx

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Add this at the top:

Const FOF_SILENT = &H4&

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Hi I have this vb script running on XP - SP2

I'm using the FOF_SILENT flag to hide the progress dialog
but It sill diaplays.

Here is the code:
Set oApp = CreateObject("Shell.Application")
Set oZipFolder = oApp.Namespace("C:\Temp\")
oZipFolder.MoveHere "C:\ABC\XYZ.TXT\", FOF_SILENT

Please help.
Thank you
 
Back
Top