View Single Post
Old Feb 21st, 2005, 4:11 PM   #1
Limpet
Newbie
 
Join Date: Feb 2005
Posts: 2
Rep Power: 0 Limpet is on a distinguished road
best method of starting another program?

Hi, im new here and I have a question.

I'm trying to make a gui in vb6 that will pass parameters to an external program. I've read that you can do that it can be done with Shell(), ShellExecute() or ShellExecuteEx() but I don't know which way would be best to do this. Maybe there's a better way than those?

The programs (there's 3) that I am trying to send these parameters to are called vbsp.exe, vvis.exe, and vrad.exe. If anyone plays hl2 and maps for it you'd recognize these programs. What they do is build the level and compile it into a .bsp file that you play the game with.
Anyway, the way you run these programs is like this: (I'll use vbsp.exe for the example)

vbsp [options...] mapfile

Where [options] are the parameters and mapfile is a .vmf file.
Which way is would be best to run the program and give it the parameters a user would select?

Thanks for anyhelp.
Limpet is offline   Reply With Quote