/out:filename
The compiler expects to find one or more source code files following the /out option.
If you do not specify the name of the output file:
On the command line, it is possible to specify multiple output files for your compilation. All source code files specified after an /out option will be compiled into the output file specified by that /out option. A source code file used to compile one output file cannot be used in the same compilation for the compilation of another output file.
Specify the full name and extension of the file you want to create.
Compile t2.vb
and create output file t2.exe
:
vbc t2.vb /out:t3.exe