473,418 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Automation Slower Than Windows Explorer

I have an Access 2000 mdb file which opens MS Word docs using automation.
Our WAN is somewhat slow, and it takes about six seconds to open Word and
the specified document (20 KB) from within Access using automation. I also
noticed that if I use Shell to open Winword and the document, or if I just
enter the document name from a Command window, it also takes 6 seconds.
However, if I double-click on the file from Windows Explorer to open Word
and the file, it only takes 4 seconds.

Any ideas as to why opening the file from Windows Explorer is faster than
any of the other above-mentioned methods?

Thanks.
Dec 12 '05 #1
2 2314
It may have to do with Caching. Once a file has been opened once, it will
open quicker the next time. There may also be something in Explorer that
pre-caches some aspect of opening the file when it sees it as you browse the
folder (such as already having the connection to the network folder open),
but this has to be done without warning when you call the file from within
code.

--
Wayne Morgan
MS Access MVP
"Neil" <no****@nospam.net> wrote in message
news:T8*****************@newsread1.news.pas.earthl ink.net...
I have an Access 2000 mdb file which opens MS Word docs using automation.
Our WAN is somewhat slow, and it takes about six seconds to open Word and
the specified document (20 KB) from within Access using automation. I also
noticed that if I use Shell to open Winword and the document, or if I just
enter the document name from a Command window, it also takes 6 seconds.
However, if I double-click on the file from Windows Explorer to open Word
and the file, it only takes 4 seconds.

Any ideas as to why opening the file from Windows Explorer is faster than
any of the other above-mentioned methods?

Thanks.

Dec 12 '05 #2
You're actually using three different methods to open the file
Automation
Command line
DDE

Having said that, entering the document path alone in the run box or double
clicking on the file should both be using DDE. teh difference in results
could be doe to cacheing or some other network glitch of which we are
unaware.

In order to get a statistically sound group of tests I would try all the
methods at least 10 times each and take the average time before comparing.
--
Terry Kreft

"Neil" <no****@nospam.net> wrote in message
news:T8*****************@newsread1.news.pas.earthl ink.net...
I have an Access 2000 mdb file which opens MS Word docs using automation.
Our WAN is somewhat slow, and it takes about six seconds to open Word and
the specified document (20 KB) from within Access using automation. I also
noticed that if I use Shell to open Winword and the document, or if I just
enter the document name from a Command window, it also takes 6 seconds.
However, if I double-click on the file from Windows Explorer to open Word
and the file, it only takes 4 seconds.

Any ideas as to why opening the file from Windows Explorer is faster than
any of the other above-mentioned methods?

Thanks.

Dec 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mic | last post by:
I'm currently trying to write an MSIE automation software and have run into such problem - have no idea how to take control of external popup windows - I use WebBrowser COM object and am able to...
0
by: asadhussain | last post by:
I wrote a plugin to internet explorer that requires internet explorer to be shutdown and restarted. I figured out a way to shut down IE using the MSI and to start it back up using VBScript. I...
3
by: Robert | last post by:
---EN--- This message has been crossposted in a french speaking newsgroup, english version is at the end. Thanks a lot for your help... --/EN--- Bonjour, Je développe une application...
15
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
3
by: TR | last post by:
Hi, We have some code that uses automation to create/manipulate word documents. This runs in a batch mode, generating dozens of documents in sequence. The code works great, but while the...
8
by: scorpion53061 | last post by:
My boss is more and more asking me to get into areas of report formatting and such with the primarily database apps that I write. I am not pleased with Crystal and some of the pitfalls I have...
2
by: RJB | last post by:
I'm working on a VB application that must run 24x7 for a LONG time, think 60 days of so. As part of what it does it must automate an instance of IE and navigate to many different URLs, think many...
4
by: HS1 | last post by:
Hello Could you please help a code so I can open a folder in windows explorer when I click a button, (e.g explorer automation) Thank you SH
0
by: Nitin Mittal | last post by:
Dear Sir I have a created a Web Service that uses ShDocVw.Dll and Microsoft.mshtml.dll for IE automation. For the development I am using VS 2005 installed on Windows 2000 Professional System. In...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.