Return value from vb exe

How can we return a value from a Vb exe
as we have only unload me or end to close an application

As we do in a simple c code
int main()
if (param1 == 1)
    return 2 ;
return 1;
Who is Participating?
1. you can write to a text file and read the output (prefered if integrating with ERP systems)
2. use ExitProcess API (prefered thro batch files)
I think my answer is OK.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.