VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Start or Restart an exe from within your Appl.

Joachim Berz  (1 Submission)   Windows API Call/Explanation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

starts an exe from within your application. But if the exe is already loaded, it becomes the focus! Normaly it starts with the poor shell-Command again and again... // IN GERMAN: Startet eine EXE aus Deiner VB-Applikation. Wenn Die EXE jedoch schon einmal gestartet wurde, wird sie lediglich fokusiert(!). Normalerweise würde sie wieder und wieder gestartet werden, wenn sie zuvor vom User nicht geschlossen wurde!

API Declarations
Option Explicit
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

Rate Start or Restart an exe from within your Appl. (2(2 Vote))
Start or Restart an exe from within your Appl..bas

Start or Restart an exe from within your Appl. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters