by phpguru (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)
This code will make an executable file from your visual basic project (vbp file) without having to go to Visual Basic and select Make exe.
It's a part of a bigger program i am working on, program that i will post here on VBC as long as i will finish. The reason why i'm submitting this code it's to demonstrate the capabilities of shellexecute and the /make switch of visual basic.
Inputs
The visual basic project (vbp) file
Side Effects
It's assumed that the visual basic program is in C:\Program Files\Microsoft Visual Studio\VB98\vb6.exe . If your visual basic is in different directory, just change the code and put your vb path. Sorry about that, but i am still a beginner and can't find how to get the vb directory from code. If you know i will apreciate some feedback.
Download Make quick executable from visual basic projects (2 KB)