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. Visual Basic
  4. How to convert an exe into a service

How to convert an exe into a service

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
7 Posts 6 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.
  • R Offline
    R Offline
    RK11 2009
    wrote on last edited by
    #1

    I have an exe application which is on vb6. I want to remotely push it into different machines and run it as a service there.This service should start as soon as the user logs into his machine. Please tell me if it can be achieved and how to do it? Thanks.

    C D G 3 Replies Last reply
    0
    • R RK11 2009

      I have an exe application which is on vb6. I want to remotely push it into different machines and run it as a service there.This service should start as soon as the user logs into his machine. Please tell me if it can be achieved and how to do it? Thanks.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      As VB6 was always a useless language, and has not been supported for 7 years now, you should put VB6 in your subject, to attract the help of the 3-4 people still using it.

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      P 1 Reply Last reply
      0
      • R RK11 2009

        I have an exe application which is on vb6. I want to remotely push it into different machines and run it as a service there.This service should start as soon as the user logs into his machine. Please tell me if it can be achieved and how to do it? Thanks.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Properly written, you don't. If you want to run an .eXE when a user logs in, this is not done as a service, but as a normal executable running out of the Registry's Run key.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        1 Reply Last reply
        0
        • C Christian Graus

          As VB6 was always a useless language, and has not been supported for 7 years now, you should put VB6 in your subject, to attract the help of the 3-4 people still using it.

          Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

          P Offline
          P Offline
          paas
          wrote on last edited by
          #4

          IMO VB6 was only a useless language for people who can not program. In addition, Microsoft's support for VB6 did not end until March or April of 2008, which is significantly less than 7 years ago. And, FWIW, the name of this message board is 'Visual Basic', not 'VB.NET', so there is no real requirement that individuals specify what flavor of VB they are working with when posting their questions. You don't complain when people who are working with .NET do not specify that in the subject of their questions, so maybe you should consider showing the same respect for those who still work with VB6.

          J C 2 Replies Last reply
          0
          • R RK11 2009

            I have an exe application which is on vb6. I want to remotely push it into different machines and run it as a service there.This service should start as soon as the user logs into his machine. Please tell me if it can be achieved and how to do it? Thanks.

            G Offline
            G Offline
            gsipes
            wrote on last edited by
            #5

            use the sc.exe in the system32 folder. This will allow you to create, name, and assign an exe to a service. This can be easily done in a small batch script shelled out by the vb or in vbscript. A seperate script is not bad, but this does require to either sleep the thread, run another thread during execution of the script

            1 Reply Last reply
            0
            • P paas

              IMO VB6 was only a useless language for people who can not program. In addition, Microsoft's support for VB6 did not end until March or April of 2008, which is significantly less than 7 years ago. And, FWIW, the name of this message board is 'Visual Basic', not 'VB.NET', so there is no real requirement that individuals specify what flavor of VB they are working with when posting their questions. You don't complain when people who are working with .NET do not specify that in the subject of their questions, so maybe you should consider showing the same respect for those who still work with VB6.

              J Offline
              J Offline
              Jon_Boy
              wrote on last edited by
              #6

              Member comments reflect the fact that VB6 is not what current day development "should be" done with. If you asked any Microsoft developer what they use in-house, its highly improbable that anyone would state VB6. Sure, some companies and people may not have the resources to convert everything to .Net still and you may be forced to remain on VB6, but the vast majority of developers here use .Net.

              paas wrote:

              so there is no real requirement that individuals specify what flavor of VB they are working with when posting their questions.

              The vast majority of members here use .Net and it is assumed if not specified, that's what the orig. poster is using. If not and the poster did not state it as such, you will not get correct answers to your question(s) and yes, probably "encouraged" to move up to .Net as well. Sorry, such is the way of life with evolution. Adapt to your surroundings or become extinct.

              "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

              1 Reply Last reply
              0
              • P paas

                IMO VB6 was only a useless language for people who can not program. In addition, Microsoft's support for VB6 did not end until March or April of 2008, which is significantly less than 7 years ago. And, FWIW, the name of this message board is 'Visual Basic', not 'VB.NET', so there is no real requirement that individuals specify what flavor of VB they are working with when posting their questions. You don't complain when people who are working with .NET do not specify that in the subject of their questions, so maybe you should consider showing the same respect for those who still work with VB6.

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                paas wrote:

                IMO VB6 was only a useless language for people who can not program.

                True. Programmers could use C++ to make COM objects that took up the slack of what VB6 could not do. VB6 itself was DESIGNED for people who cannot program.

                paas wrote:

                And, FWIW, the name of this message board is 'Visual Basic', not 'VB.NET'

                Yes, but 99% of the questions are VB.NET. I didn't say 'wrong forum', I said 'you need to tell people on the subject that it's VB6 because people will assume VB.NET until told otherwise'.

                paas wrote:

                In addition, Microsoft's support for VB6 did not end until March or April of 2008, which is significantly less than 7 years ago.

                Really ? Well, I know they were eager to bury it right away, I guess enough people complained to drag out it's death.

                paas wrote:

                You don't complain when people who are working with .NET do not specify that in the subject of their questions

                No, because VB.NET is a modern, supported language that was designed rather than thrown together. It's what most people use, it's implicit when you say VB today, just like if you said you speak Greek, you'd assume modern, not ancient Greek.

                Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

                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