Perhaps this is not the ideal solution, but you can create a batch file with several commands. Did you know that you can pass parameters to a batch file? This can help you make fairly flexible programs.
Hilmar.
>Does anyone know how to maintain an open command prompt that I can pass commands to. Let me explain. I have a process that opens a command prompt, runs a quick function and then the command prompt closes. This is extremely hard on the system. Not to mention slow. Any ideas?
>
>
>Thanks
>Tom Welch
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)