Community discussion forum

one application to another application using vb.net

  • 5 months ago
                Hi
    

    I am using two console application in vb.net I am passing value one apps to another application but i cant retrieve argument value in another application then i want get retrun value from second application

    my code is below

    *First Application *

    Try Dim strReturn As String Dim p As Diagnostics.Process = New Diagnostics.Process p.StartInfo.Arguments = "A|" & "1001" p.StartInfo.FileName = "F:\Caluclation.exe" p.StartInfo.RedirectStandardOutput = True p.StartInfo.UseShellExecute = False p.Start() ' p.StartInfo.RedirectStandardOutput = True p.StartInfo.RedirectStandardError = True 'p.WaitForExit()

            strReturn = p.StandardOutput.ReadLine()
            If p.StandardOutput.ReadLine() <> "" Then
    
    
    
            End If
    
        Catch ex As Exception
            Console.WriteLine(ex)
        End Try
    

    *Second Application *

    Dim str As String str = Command()

        Dim ch As Char() = {"|"}
        Dim st As String() = str.Split(ch)
        Dim strEmployeeType As String
        Dim strIncome As String
        strEmployeeType = st(0).Replace("'", "")
        strIncome = st(1).Replace("'", "")
        ' SDFCalculation(strEmployeeType, strIncome)
    

    Thanks in Advance

    S.Senthilnathan

    Post was edited on 11/06/2009 05:43:07 Report abuse
  • 5 months ago

    http://bit.ly/izsu9 .... The new VSTS enables you to convert your imagination into the perfect material images on screen ! Let your mind do the thinking and VSTS will do the rest

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback