Hello,
I don't know how can I set a code to be returned by my exe program. I have a VB program that runs another VB program in this way:
Set oShell = CreateObject("WSCript.shell")
nRet = oShell.Run("Test1.exe", , True)
Set oShell = Nothing
I want to check nRet but I don't know how can I return it by Test1.exe.
For example if Test1.exe fails I want to return -1. In this way nRet will
be set to -1
I appreciate your help.
--Bita
I don't know how can I set a code to be returned by my exe program. I have a VB program that runs another VB program in this way:
Set oShell = CreateObject("WSCript.shell")
nRet = oShell.Run("Test1.exe", , True)
Set oShell = Nothing
I want to check nRet but I don't know how can I return it by Test1.exe.
For example if Test1.exe fails I want to return -1. In this way nRet will
be set to -1
I appreciate your help.
--Bita