Executing Scripts from VB6.0 Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amolbehl
    New Member
    • May 2007
    • 63

    Executing Scripts from VB6.0 Code

    Hi,

    I have a written 2 VB programs, "startup.ex e" and a "mainProgram.vb p" now I need to invoke the "startup.ex e" via mainProgram.vbp and send a parameter to the startup.exe as well.

    Does anyone know how to do this in VB6.0
  • anikonthenet
    New Member
    • Sep 2007
    • 4

    #2
    try :
    Shell ( <the path> "startup.ex e")

    feed back regarded

    Comment

    • 9815402440
      New Member
      • Oct 2007
      • 180

      #3
      hi

      you can handle command line arguments following way

      Dim cmdLine
      cmdLine = Command()
      If cmdLine <> Empty Then

      End If

      Comment

      • 9815402440
        New Member
        • Oct 2007
        • 180

        #4
        hi

        you can handle command line arguments following way

        Dim cmdLine
        cmdLine = Command()
        If cmdLine <> Empty Then
        debug.print cmdLine
        End If


        you can start other exe from vb code as follows

        Shell "Start E:\E\MyFiles\mp \Verka\emp.exe <Parameter list>"

        regards
        manpreet singh dhillon hoshiarpur

        Comment

        Working...