Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Get Error After Compile Exe With Command Line In VB 6.0

Tags:

command

vb6

I have Command in my program Like this:

Shell " \Vb6 /MAKE "Project"

How do I get error status of the command if the project contains errors ?

like image 326
ZeRro Sun Avatar asked Sep 03 '25 04:09

ZeRro Sun


2 Answers

Use /out filename to specify a file to receive error messages when building using /make.

Hint: if you run VB6 /? it will display the possible command-line flags. Like this:

enter image description here

like image 114
MarkJ Avatar answered Sep 04 '25 17:09

MarkJ


The shell function can return a value.

Try:

 result = shell(".....
like image 20
nabuchodonossor Avatar answered Sep 04 '25 16:09

nabuchodonossor