Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Windows Service Questions

Windows Service Questions

Scheduled Pinned Locked Moved C#
csharpwinformssysadmintoolsperformance
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MartyExodus
    wrote on last edited by
    #1

    I am writing a program in Visual C# Express 2005, and I need to know if it can be done the way I am doing it. Here a my couple concerns: 1.) I have my Windows Forms app and a Windows service compiled into the same EXE. Will that affect my performance in any way? Or render anything unusable? At this point, the service appears in the Services console (services.msc) but I am unable to Start it. 2.) I need to install this service on multiple computers on my domain.... at runtime of my main form. Is there any way I can do this? Or would I have to install the service over the network ina script? My account is administrator of the other computers, so I should be able to do this, I think. 3.) If anyone knows of any easier way to run a couple of DOS commands on a large group of remote computers, rather than a Windows Service, could you tell me? I'd be much obliged. Thanks to any who can answer any of these questions for me. I know it's a pain, so thanks. -MartyExodus

    D 1 Reply Last reply
    0
    • M MartyExodus

      I am writing a program in Visual C# Express 2005, and I need to know if it can be done the way I am doing it. Here a my couple concerns: 1.) I have my Windows Forms app and a Windows service compiled into the same EXE. Will that affect my performance in any way? Or render anything unusable? At this point, the service appears in the Services console (services.msc) but I am unable to Start it. 2.) I need to install this service on multiple computers on my domain.... at runtime of my main form. Is there any way I can do this? Or would I have to install the service over the network ina script? My account is administrator of the other computers, so I should be able to do this, I think. 3.) If anyone knows of any easier way to run a couple of DOS commands on a large group of remote computers, rather than a Windows Service, could you tell me? I'd be much obliged. Thanks to any who can answer any of these questions for me. I know it's a pain, so thanks. -MartyExodus

      D Offline
      D Offline
      Dustin Metzgar
      wrote on last edited by
      #2

      MartyExodus wrote:

      I have my Windows Forms app and a Windows service compiled into the same EXE

      Why? It's not that hard to separate them into different projects.

      MartyExodus wrote:

      If anyone knows of any easier way to run a couple of DOS commands on a large group of remote computers

      You will definitely have to have an NT service on each computer.  And you should definitely have to install the service on each computer by script.  The script's not that hard, just installutil.  But you say DOS commands almost like you're using System.Diagnostics.Process[^] to run stuff from the command prompt.  In that case, why not just write a quick VBScript and run it on each computer?


      Logifusion[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups