Parameters for a Process.Start

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ed Bitzer

    #1

    Parameters for a Process.Start


    When I use System.Diagnost ics.Process.Sta rt("D:\MyDialer .exe 123 456
    1234") attmpting to run a dialer from my program, I get an error 5
    "The system cannot fine the file specified" If I eliminate the
    command line phone number, MyDialer is run but of course without the
    necessary command line. Appreciate some help.

    Ed


  • rowe_newsgroups

    #2
    Re: Parameters for a Process.Start

    On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
    When I use System.Diagnost ics.Process.Sta rt("D:\MyDialer .exe 123 456
    1234") attmpting to run a dialer from my program, I get an error 5
    "The system cannot fine the file specified" If I eliminate the
    command line phone number, MyDialer is run but of course without the
    necessary command line. Appreciate some help.
    >
    Ed
    What about:

    Dim pi As New ProcessStartInf o("D:\MyDialer. exe", "123 456
    1234")
    Process.Start(p i)

    Thanks,

    Seth Rowe

    Comment

    • Ed Bitzer

      #3
      Re: Parameters for a Process.Start


      "rowe_newsgroup s" <rowe_email@yah oo.comwrote in message
      news:1183654562 .942910.108210@ m36g2000hse.goo glegroups.com.. .
      On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
      >When I use System.Diagnost ics.Process.Sta rt("D:\MyDialer .exe 123
      >456
      >1234") attmpting to run a dialer from my program, I get an error 5
      >"The system cannot fine the file specified" If I eliminate the
      >command line phone number, MyDialer is run but of course without
      >the
      >necessary command line. Appreciate some help.
      >>
      >Ed
      >
      What about:
      >
      Dim pi As New ProcessStartInf o("D:\MyDialer. exe", "123 456
      1234")
      Process.Start(p i)
      >
      Thanks,
      >
      Seth Rowe
      Seth,
      Nope..... throws the same error. Got any more ideas<g>
      Ed


      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Parameters for a Process.Start

        Ed,

        On this page on our website some samples.



        Cor

        "Ed Bitzer" <edbitzer@yahoo .comschreef in bericht
        news:e1J27KyvHH A.4992@TK2MSFTN GP04.phx.gbl...
        >
        When I use System.Diagnost ics.Process.Sta rt("D:\MyDialer .exe 123 456
        1234") attmpting to run a dialer from my program, I get an error 5 "The
        system cannot fine the file specified" If I eliminate the command line
        phone number, MyDialer is run but of course without the necessary command
        line. Appreciate some help.
        >
        Ed
        >

        Comment

        • rowe_newsgroups

          #5
          Re: Parameters for a Process.Start

          On Jul 5, 1:11 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
          "rowe_newsgroup s" <rowe_em...@yah oo.comwrote in message
          >
          news:1183654562 .942910.108210@ m36g2000hse.goo glegroups.com.. .
          >
          >
          >
          On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
          When I use System.Diagnost ics.Process.Sta rt("D:\MyDialer .exe 123
          456
          1234") attmpting to run a dialer from my program, I get an error 5
          "The system cannot fine the file specified" If I eliminate the
          command line phone number, MyDialer is run but of course without
          the
          necessary command line. Appreciate some help.
          >
          Ed
          >
          What about:
          >
          Dim pi As New ProcessStartInf o("D:\MyDialer. exe", "123 456
          1234")
          Process.Start(p i)
          >
          Thanks,
          >
          Seth Rowe
          >
          Seth,
          Nope..... throws the same error. Got any more ideas<g>
          Ed
          Are you sure the parameters are correct?

          Also, can you type D:\MyDialer.exe 123 456 1234 into the command
          prompt and have it work properly?

          Try this and see if it works:

          Dim pi As New ProcessStartInf o("ping.exe", "-a www.google.com" )
          Process.Start(p i)

          Thanks,

          Seth Rowe

          Comment

          • Ed Bitzer

            #6
            Re: Parameters for a Process.Start


            "rowe_newsgroup s" <rowe_email@yah oo.comwrote in message
            news:1183654562 .942910.108210@ m36g2000hse.goo glegroups.com.. .
            On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
            >When I use System.Diagnost ics.Process.Sta rt("D:\MyDialer .exe 123
            >456
            >1234") attmpting to run a dialer from my program, I get an error 5
            >"The system cannot fine the file specified" If I eliminate the
            >command line phone number, MyDialer is run but of course without
            >the
            >necessary command line. Appreciate some help.
            >>
            >Ed
            >
            What about:
            >
            Dim pi As New ProcessStartInf o("D:\MyDialer. exe", "123 456
            1234")
            Process.Start(p i)
            >
            Thanks,
            >
            Seth Rowe
            Seth,

            I'm sorry - after I received Cor's direction, I could not figure why
            your suggestion did not work and I found the problem - a typo when I
            went to implment. Your suggestion worked fine.

            Ed


            Comment

            • Ed Bitzer

              #7
              Re: Parameters for a Process.Start


              "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
              news:umZFFgyvHH A.4640@TK2MSFTN GP03.phx.gbl...
              Ed,
              >
              On this page on our website some samples.
              >

              >
              Cor
              >
              "Ed Bitzer" <edbitzer@yahoo .comschreef in bericht
              news:e1J27KyvHH A.4992@TK2MSFTN GP04.phx.gbl...
              >>
              >When I use System.Diagnost ics.Process.Sta rt("D:\MyDialer .exe 123
              >456 1234") attmpting to run a dialer from my program, I get an
              >error 5 "The system cannot fine the file specified" If I eliminate
              >the command line phone number, MyDialer is run but of course
              >without the necessary command line. Appreciate some help.
              >>
              >Ed
              >>
              >
              Thanks Cor,

              By reviewing your site suggestions I found a previous mistake. After
              checking your site out I realize I should often start my searches
              there rather than impose on the group.

              Ed


              Comment

              • rowe_newsgroups

                #8
                Re: Parameters for a Process.Start

                On Jul 5, 1:32 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
                "Cor Ligthert [MVP]" <notmyfirstn... @planet.nlwrote in messagenews:umZ FFgyvHHA.4640@T K2MSFTNGP03.phx .gbl...
                >
                Ed,
                >
                On this page on our website some samples.
                >>
                Cor
                >
                "Ed Bitzer" <edbit...@yahoo .comschreef in bericht
                news:e1J27KyvHH A.4992@TK2MSFTN GP04.phx.gbl...
                >
                When I use System.Diagnost ics.Process.Sta rt("D:\MyDialer .exe 123
                456 1234") attmpting to run a dialer from my program, I get an
                error 5 "The system cannot fine the file specified" If I eliminate
                the command line phone number, MyDialer is run but of course
                without the necessary command line. Appreciate some help.
                >
                Ed
                >
                Thanks Cor,
                >
                By reviewing your site suggestions I found a previous mistake. After
                checking your site out I realize I should often start my searches
                there rather than impose on the group.
                >
                Ed
                checking your site out I realize I should often start my searches
                there rather than impose on the group.
                As well as Cor and Ken's site you should also search the archives of
                this newsgroup at http://groups.google.com/group/micro...s?lnk=sg&hl=en

                Thanks,

                Seth Rowe

                Comment

                Working...