Cara, me desculpe mas é muito fácil veja só.
Utilize agrumentos de execução
'Isto em um executavel ex. projetc1.exe
Sub Main
If InStr(Command$, "Comando") = "Abrir" Then 'o valor 'Abrir' é generico pode ser qualquer argumento
msgbox "Argumento utilizado com sussesso"
Form1.Show
else
Msgbox "erro ao inicializar o aplicativo"
end
End If
If InStr(Command$, "/tudo") Then
' a mesma coisa pois pode colocar quantos agumentos quizeres
if ... then
...
else
...
endif
End If
'num segundo aplicativo chamador voce entra com esta chamada.
'
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Const SW_SHOW = 5
...
Dim lRet As Long
dim argumento as string
argumento="Abrir"
lRet = ShellExecute(0, "Open", Label2.Caption, argumento, "", SW_SHOW)
'se o argumento passado está correto vai enfrente
...
se quiser posso lhe enviar um demo.
'Só os melhores prevalecem