473,804 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

process.start - slow startup times

Hi Everyone,

I am writing a small .net forms app that rquires a word document to be
opened. I use the command
process.start(f ilePath).

The command does just as it should and opens the document with word.
HOWEVER the problem is that it takes forever - well about 20 seconds
anyway for the document to open.

If I go into the file browser and double click on the file it opens in
under 2 seconds.

Also I found that if my program instead of opening a .doc file instead
opens a .txt file then it works quickly i.e. it opens up the document
under word pad in less than 2 seconds.

If anyone has any suggestions they would be most appreciated.

Cheers
Gary

Dec 9 '06 #1
1 5819
Hi Gary,

Out of curiosity, does the performance improve if you explicitly specify the
path to the Word program and submit the filePath as an argument?

--
Dave Sexton

"gazza67" <ga*******@gmai l.comwrote in message
news:11******** **************@ l12g2000cwl.goo glegroups.com.. .
Hi Everyone,

I am writing a small .net forms app that rquires a word document to be
opened. I use the command
process.start(f ilePath).

The command does just as it should and opens the document with word.
HOWEVER the problem is that it takes forever - well about 20 seconds
anyway for the document to open.

If I go into the file browser and double click on the file it opens in
under 2 seconds.

Also I found that if my program instead of opening a .doc file instead
opens a .txt file then it works quickly i.e. it opens up the document
under word pad in less than 2 seconds.

If anyone has any suggestions they would be most appreciated.

Cheers
Gary

Dec 10 '06 #2

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

Similar topics

7
1777
by: Ryan Walker | last post by:
Hi, I'm getting started with python and have almost zero programming experience. I'm finding that there are tons of tutorials on the internet -- such as the standard tutorial at python.org -- that tell you all about the language. That is, what are the methods, functions, modules, syntax, punctuation, etc. No problem there! Meanwhile, I'm finding that there is very little (that I can find) about how to do basic logistical things related...
6
3209
by: m | last post by:
Hello, I have an application that processes thousands of files each day. The filenames and various related file information is retrieved, related filenames are associate and placed in a linked list within a single object, which is then placed on a stack(This cuts down thread creation and deletions roughly by a factor of 4). I create up to 12 threads, which then process a single object off of the stack. I use a loop with a boolean...
3
2201
by: Mythran | last post by:
I've noticed that no matter which language I choose and no matter how small the application, it still takes about 3-5 seconds to start up compared to vb's 1-3 seconds startup on an average SMALL application. Is this because of the precaching factors in the .NET framework or is my machine so slow (1.6 GHz, yeah right) that it can't load it all fast enough. Also, understanding the .NET IDE and how much is involved, is there any way to speed...
3
5297
by: dave | last post by:
Hi, Does anyone know how I could make an .exe launched server side from an aspx file run faster? When I use javascript client side it of couse is much faster. Here's my code This code does work but it's extremely slow. What am I missing? Process Updater = new Process();
17
1981
by: VM | last post by:
In my Windows app, I'm running a batch process that's composed of a FOR loop that'll run 15,000 times (datatable row count), copy cthe data of each row -3 fields- to a struct, and send the strct to an external method (using DLLImport). The problem is that the processing speed is very inconsistent- it may run very FAST during certain points but then it runs VERY slow at other moments (especially when it's getting to the end of the table:...
5
6764
by: Reddy | last post by:
I am running process.sart to run gpg.exe to encrypt files. It's working fine with console application. When i use same code in windows service. It's not working. It's not even throwing error.Follwoing is the code i am using. Please somebody help me. Process p = new Process(); p.StartInfo.WorkingDirectory = Path; p.StartInfo.FileName = fileName; p.StartInfo.Arguments =arguments; p.Start();
9
13048
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App Domain. We have both Cold Fusion and ASP.NET apps on this server and the Cold Fusion apps do not display such slowness on their first start up of the day. Is there a way to improve the load times of ASP.NET apps? I'm having to justify to my boss...
10
18099
by: kimiraikkonen | last post by:
Hi there, I figured out, for the first execution for any .NET-powered app such as VB.NET or C#, it takes 7-8 seconds to see main form of "any" application even the application consists of a single form and a button and only 32kb sized. The second execution(without rebooting machine) is done less than a second. This slowdown on startup doesn't occur on non-.NET-powered apps such as VB6, MFC or VC++ 6 applications. If an application is...
4
3235
by: Brian Gideon | last post by:
I'm having a problem with the amount of time it takes to initialize an application pool on IIS 6.0. Upon the first request to an ASP.NET page the worker process (w3wp.exe) starts up. The problem in my case is that it takes more than 5 minutes to begin servicing requests after the initial startup. During that agonizingly long period the process is doing nothing...and I mean absolutely nothing...0% CPU and no memory movement at all. And...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10603
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10356
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6869
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.