If I type in my command line: myProcess argument1 argument2 argument3 Then to do the same thing as an exec will be: exec "myProcess.exe", "argument1", "argument2", "argument3";