the LV team made this drop dead simple in LabVIEw 7.0 by intgrating your VI and the command line. If you ahve LV 7.0, open the example called "CommandLine.vi" to see how it works.
If you don't have LV 7, then I recommend that you look at the evaluation version just for this feature. The eval is free, and the example I mentioned is easily found from the Example Finder. This feature alone my make it worth your while to upgrade.
