How to Run an Invisible EXE in VB6

When developing an application in Microsoft Visual Basic 6 (VB6), if you need to run a hidden executable at any time, you can do so using the Shell function. Visual Basic 6 is a software development tool, so running an executable file may be necessary to, for example, install a plug-in or separate program file. The Shell command does not, itself, open a program invisibly; this requires that program to run invisibly. This is easy with an installation file, for example, as you can use the -silent parameter.

Instructions

    • 1

      Open your Visual Basic 6 script in the development suite.

    • 2

      Browse through your script to the line where you want to run the executable.

    • 3

      Type [Shell "C:\file.exe",] (without hard brackets, replacing C:\file.exe with the path and file name).

    • 4

      Add, if the file is an installation file, the -silent tag following the path name.

    • 5

      Add, if the file needs to run in the background, the following to the end of the path name: vbNormalFocus.

Related Searches:

References

Comments

Related Ads

Featured