If you have v2006, you can run MediaLab from a command line or call it from a "shell" type command (e.g., using a VB program).

As a shell command, try:
Code:
 
Shell "c:\medialab\medialab.exe c:\medialab\samples\sample1\sample1.exp,15,1"
This can also be run from the Windows "Run" command, a batch file or shortcut file (notice the difference in quotation marks)..
Code:
"c:\my documents\medialab\medialab.exe" c:\medialab\samples\sample1\sample1.exp,44,1
If you specify the subject and condition IDs like this then the session will start automatically with no prompts and will end upon completion. Alternatively, you may specify "0" for either or both. If you specify a 0 for both (i.e., "0,0") then MediaLab will attempt to use an autostart file if one exists. If one does NOT exist, then MediaLab will prompt you for the IDs. You may also specify one but not the other, in which case MediaLab will prompt you for the unspecified value. I wrote it this way in hope that it would give the greatest flexibility.

Let me know how it goes!