Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 04-10-2007, 02:15 PM
Ben
Newsgroup Contributor
 
Posts: n/a
Hide confirmation dialog to appear when a file is copied using scr

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 04-10-2007, 02:15 PM
  #2 (permalink)  
Old 04-10-2007, 07:45 PM
Ramesh, MS-MVP
Newsgroup Contributor
 
Posts: n/a
Re: Hide confirmation dialog to appear when a file is copied using scr

Add this at the top:

Const FOF_SILENT = &H4&

--
Regards,

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


"Ben" <Ben@discussions.microsoft.com> wrote in message news:71FB8AD2-2658-473E-AEB4-92DBBC8F94AB@microsoft.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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 04-10-2007, 08:00 PM
Ramesh, MS-MVP
Newsgroup Contributor
 
Posts: n/a
Re: Hide confirmation dialog to appear when a file is copied using scr

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


"Ramesh, MS-MVP" <ramesh@XOX.mvps.org> wrote in message news:u%23ywzK%23eHHA.5052@TK2MSFTNGP06.phx.gbl...
Add this at the top:

Const FOF_SILENT = &H4&

--
Regards,

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


"Ben" <Ben@discussions.microsoft.com> wrote in message news:71FB8AD2-2658-473E-AEB4-92DBBC8F94AB@microsoft.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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 04-11-2007, 04:30 AM
Ben
Newsgroup Contributor
 
Posts: n/a
Re: Hide confirmation dialog to appear when a file is copied using

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, MS-MVP" wrote:

> 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
>
>
> "Ramesh, MS-MVP" <ramesh@XOX.mvps.org> wrote in message news:u%23ywzK%23eHHA.5052@TK2MSFTNGP06.phx.gbl...
> Add this at the top:
>
> Const FOF_SILENT = &H4&
>
> --
> Regards,
>
> Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
> Windows® Troubleshooting http://www.winhelponline.com
>
>
> "Ben" <Ben@discussions.microsoft.com> wrote in message news:71FB8AD2-2658-473E-AEB4-92DBBC8F94AB@microsoft.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
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 04-11-2007, 05:15 AM
Ramesh, MS-MVP
Newsgroup Contributor
 
Posts: n/a
Re: Hide confirmation dialog to appear when a file is copied using

Ben,

>> I alredy have Const FOF_SILENT = &H4&


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


"Ben" <Ben@discussions.microsoft.com> wrote in message news:497B55AA-86BB-48D7-A11A-5D0B3F6848C5@microsoft.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, MS-MVP" wrote:

> 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
>
>
> "Ramesh, MS-MVP" <ramesh@XOX.mvps.org> wrote in message news:u%23ywzK%23eHHA.5052@TK2MSFTNGP06.phx.gbl...
> Add this at the top:
>
> Const FOF_SILENT = &H4&
>
> --
> Regards,
>
> Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
> Windows® Troubleshooting http://www.winhelponline.com
>
>
> "Ben" <Ben@discussions.microsoft.com> wrote in message news:71FB8AD2-2658-473E-AEB4-92DBBC8F94AB@microsoft.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
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Confirmation dialog - checked as default ? Poster Windows Vista 0 01-09-2008 09:20 AM
Copying Dialog appears over Confirm File Replace dialog theclyde Windows Vista 1 06-12-2007 04:20 PM
Windows dialog doesn't show filename of file being copied or moved? theFATboy Windows Vista 6 06-03-2007 03:50 PM
Re: Refresh button (F5) and Turn off confirmation dialog in IE Matt Phipps Internet Explorer 0 05-06-2007 08:28 AM
File size different on disk and copied file Why? Spikey Windows XP 11 01-23-2007 09:30 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 10:53 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0