calling a .bat program in a vb .net program

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

    #1

    calling a .bat program in a vb .net program

    Hi,

    I need to call a .bat program inside a vb .net program. I need to be
    able to start the process and kill the process. I have yet to find
    anything on this but have just started searching. Can someone
    enlighten me? It was be very much appreciated.

    Thanks,
    Janet Heath

  • Janet

    #2
    Re: calling a .bat program in a vb .net program

    I need to stop or kill and then start the .bat after the .asp file is
    removed.


    'We need to delete the palmerup.asp file
    'First we need to see if it exists before deleting the file
    If errmsga = "Yes" And errmsgb = "Yes" And errmsgc = "Yes"
    And msga = "Yes" And System.IO.File. Exists(sripalme rupfile) = True Then
    'If w -1 And x -1 And y -1 And z = -1 Then
    'If System.IO.File. Exists(sripalme rupfile) = True Then
    'Console.WriteL ine(Line)
    'Console.WriteL ine(w)
    'Console.WriteL ine(x)
    'Console.WriteL ine(y)
    'Console.WriteL ine(z)
    System.IO.File. Delete(sripalme rupfile)
    Console.WriteLi ne("Removed palmerup.asp file")
    'Console.WriteL ine("sripalmerw ebupfile exist")
    End If



    Janet wrote:
    Hi,
    >
    I need to call a .bat program inside a vb .net program. I need to be
    able to start the process and kill the process. I have yet to find
    anything on this but have just started searching. Can someone
    enlighten me? It was be very much appreciated.
    >
    Thanks,
    Janet Heath

    Comment

    • Spam Catcher

      #3
      Re: calling a .bat program in a vb .net program

      "Janet" <jowens@wehco.c omwrote in news:1163625086 .059857.129960
      @h54g2000cwb.go oglegroups.com:
      I need to call a .bat program inside a vb .net program. I need to be
      able to start the process and kill the process. I have yet to find
      anything on this but have just started searching. Can someone
      enlighten me? It was be very much appreciated.
      >
      Take a look at the System.Diagnost ics classes.

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: calling a .bat program in a vb .net program

        "Spam Catcher" <spamhoneypot@r ogers.comschrie b:
        >I need to call a .bat program inside a vb .net program. I need to be
        >able to start the process and kill the process. I have yet to find
        >anything on this but have just started searching. Can someone
        >enlighten me? It was be very much appreciated.
        >
        Take a look at the System.Diagnost ics classes.
        More specifically: 'System.Diagnos tics.Process' and its 'Start' method.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        • Janet

          #5
          Re: calling a .bat program in a vb .net program

          Right.

          Spam Catcher wrote:
          "Janet" <jowens@wehco.c omwrote in news:1163625086 .059857.129960
          @h54g2000cwb.go oglegroups.com:
          >
          I need to call a .bat program inside a vb .net program. I need to be
          able to start the process and kill the process. I have yet to find
          anything on this but have just started searching. Can someone
          enlighten me? It was be very much appreciated.
          >
          Take a look at the System.Diagnost ics classes.

          Comment

          • Janet

            #6
            Re: calling a .bat program in a vb .net program

            Thanks, Herfried!

            Janet wrote:
            Right.
            >
            Spam Catcher wrote:
            "Janet" <jowens@wehco.c omwrote in news:1163625086 .059857.129960
            @h54g2000cwb.go oglegroups.com:
            I need to call a .bat program inside a vb .net program. I need to be
            able to start the process and kill the process. I have yet to find
            anything on this but have just started searching. Can someone
            enlighten me? It was be very much appreciated.
            >
            Take a look at the System.Diagnost ics classes.

            Comment

            Working...