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. (missing code} detect path service

(missing code} detect path service

Scheduled Pinned Locked Moved Visual Basic
helpquestion
4 Posts 3 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.
  • H Offline
    H Offline
    hassanasp
    wrote on last edited by
    #1

    Imiss in this code detect path of servivce Sub ReadSvcs() 'of his old football Dim ListSvcs() As ServiceProcess.ServiceController 'games from back in the day, Dim SingleSvc As ServiceProcess.ServiceController 'when "your mother and I were dating." But the Dim LVW As ListViewItem 'warm fuzzy of nostalgia, ListSvcs = ServiceProcess.ServiceController.GetServices 'knowing that yes, you accomplished something, makes the world 'ListSvcs = SingleSvc.GetServices 'knowing that yes, you accomplished something, makes the world lvwServices.Items.Clear() 'feel a bit easier to deal with, and Try 'eventual death acceptable, almost as though we For Each SingleSvc In ListSvcs 'have made LVW = lvwServices.Items.Add(SingleSvc.DisplayName) 'indelible marks upon the history of whatever. LVW.SubItems.Add(SingleSvc.ServiceName) 'But a sigh usually caps off the standard cock- LVW.SubItems.Add(SingleSvc.Status.ToString) 'stroking session of the BBS-days bullshit, when we had LVW.SubItems.Add(SingleSvc.ServiceType.ToString) 'only 32 baud modems. Maybe it's that I need to know 'LVW.SubItems.Add(SingleSvc.Site.Name) Next 'how little I knew, how young I was, to re- Catch e As Exception 'assure myself of the growth that I have (?) experienced, MessageBox.Show("Could not initialize Windows Service engine. Restarting your computer may work", "Fatal Error: " & e.Source) End Try 'magic marker lines with my handle and the date, maybe End Sub 'a dial-i

    Ahmed hassan

    C 1 Reply Last reply
    0
    • H hassanasp

      Imiss in this code detect path of servivce Sub ReadSvcs() 'of his old football Dim ListSvcs() As ServiceProcess.ServiceController 'games from back in the day, Dim SingleSvc As ServiceProcess.ServiceController 'when "your mother and I were dating." But the Dim LVW As ListViewItem 'warm fuzzy of nostalgia, ListSvcs = ServiceProcess.ServiceController.GetServices 'knowing that yes, you accomplished something, makes the world 'ListSvcs = SingleSvc.GetServices 'knowing that yes, you accomplished something, makes the world lvwServices.Items.Clear() 'feel a bit easier to deal with, and Try 'eventual death acceptable, almost as though we For Each SingleSvc In ListSvcs 'have made LVW = lvwServices.Items.Add(SingleSvc.DisplayName) 'indelible marks upon the history of whatever. LVW.SubItems.Add(SingleSvc.ServiceName) 'But a sigh usually caps off the standard cock- LVW.SubItems.Add(SingleSvc.Status.ToString) 'stroking session of the BBS-days bullshit, when we had LVW.SubItems.Add(SingleSvc.ServiceType.ToString) 'only 32 baud modems. Maybe it's that I need to know 'LVW.SubItems.Add(SingleSvc.Site.Name) Next 'how little I knew, how young I was, to re- Catch e As Exception 'assure myself of the growth that I have (?) experienced, MessageBox.Show("Could not initialize Windows Service engine. Restarting your computer may work", "Fatal Error: " & e.Source) End Try 'magic marker lines with my handle and the date, maybe End Sub 'a dial-i

      Ahmed hassan

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

      What is this crap ? What's with the weird comments ? Do you have a question ?

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      L 1 Reply Last reply
      0
      • C Christian Graus

        What is this crap ? What's with the weird comments ? Do you have a question ?

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        I see 3 questions now, unfortunately I don't know the answers to them. :laugh:

        Luc Pattyn [Forum Guidelines] [My Articles]


        This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


        C 1 Reply Last reply
        0
        • L Luc Pattyn

          I see 3 questions now, unfortunately I don't know the answers to them. :laugh:

          Luc Pattyn [Forum Guidelines] [My Articles]


          This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


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

          Yeah I eventually worked out that he had no idea how to edit his posts.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          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