Try this. Go to your msdos prompt and then you go to your Visual Basic Directory. and type in vb.exe /?

Then you will see the option to compile something. And if you want to use vb.exe. you have to use a Shell Function..