@foone in that case, you can pass switches to the VB6 executable to make it compile a project, so you could generate the .bas/.frm and compile it with a .bat, and finally run it.
I did some version of this when I developed and maintained an IRCX server written in VB6.