Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7419525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:05:10+00:00 2026-05-29T08:05:10+00:00

At my consulting company, we use some very expensive simulation software. I need a

  • 0

At my consulting company, we use some very expensive simulation software. I need a means to monitor the usage of these applications/processes (in the background, using C#). The idea is that when someone runs a particular application, they are prompted to enter the job name. Then, when they close the program, the amount of time they used it is sent to a database residing on the network. This way we can recoup the costs of the software by charging our clients on a $/min basis. Aside from the prompt, the program must be nearly invisible to users.

I have thought of a few ways of doing this, but I’m not sure what’s best:

  1. Have a program that runs on startup, with only a tray icon. I suppose then I would have to have a backgroundworker monitoring the processes continuously, perhaps sleeping the thread, and checking the processes every 5 minutes or so.

  2. Use something like Quartz.net, on startup and with a tray icon. If this is even applicable on a minute-by-minute basis. I am not very familiar with Quartz.net, but from my research it looks maybe do-able.

  3. Use some kind of Windows Service. This one I am least familiar with.

Which method would be most fruitful? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:05:11+00:00Added an answer on May 29, 2026 at 8:05 am

    You could write a simple C# program that upon execution collects the required information and start time.

    Then by using the Process class you execute the simulation software.
    Wait for the process to end using WaitForExit() and do whatever is needed with the execution time etc.

    So essentially you end up with an application that simply collects the required information, launches the main application, waits for the application to end and does whatever is needed with the total execution time. As far as being invisible to the user, you could just minimize the main window ( which also acts as the form for collecting the needed info ) while waiting for the application to end.

    Here is a small example of starting an executable within C#.

    private void LaunchApp()
        {
            Process proc = new Process();
            /* we are going to assume wordpad is installed on workstation */
    
            /* collect needed info and time */
    
    
            proc.StartInfo.FileName = "Wordpad.exe";
            proc.StartInfo.Arguments = "SomeFile.txt";
            proc.Start();
            proc.WaitForExit();
    
    
            /* App has ended. Now process execution time etc. */
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our company develop several software products, which reuse each others packages (we use Java).
I write software for an IT consulting company that supports a number of clients
I've recently switched from being an employee of a small consulting company to being
The IT department of a subsidiary of ours had a consulting company write them
My company makes desktop software and we want to create an iPhone app that
The company I'm working for is facing some difficulties and our future is, let's
My (software) company has hundreds of customers. We'd like to provide each customer with
At my company we are undertaking a large task of creating a new software
I've been consulting google for some time now, but it hasn't been able to
I have a friend of mine who owns his own software consulting business. Most

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.