Results 1 to 4 of 4

Thread: VB Run from Bat file

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    7

    VB Run from Bat file

    I have a VB application that is executed from a batch file. When it is run from the batch file the app runs to completion, but the GUI never shows up on screen and there is no task bar indication that it is running. When the app is executed normally it runs fine. Any ideas why this happens and how I can fix it? Thanks in advance.

  2. #2
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424
    how are u running that vb exe from .bat file ? can u post that .bat file here ?

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    7

    Bat file contents

    Our backup software can kick off batch files before and after our backup. The backup software is Veritas Backup Exec. In the settings of the backup software I point to a .bat file.

    The file name is prejob.bat and postjob.bat - Contents below

    CD D:\Hyperion\essbase\bin
    "D:\Hyperion\essbase\EssScripts\BeginArchive.exe"

  4. #4
    Lively Member THCfog's Avatar
    Join Date
    Oct 2002
    Location
    Michigan
    Posts
    86
    I would add command$ switches. Upon a certian switch make the form visible, or maxamize.

    Private Sub Form_Load()
    If Command$ = "-s" Then
    Me.Visible = True
    End If
    End Sub

    Of corse makesure the form 's show in taskbar = true...
    Last edited by THCfog; Sep 17th, 2004 at 08:55 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width