In this situation you have to concatenate manually the contents of args to command carefully escaping/quoting any special characters, since it will be passed as is to the system shell. Note that you can't pass any args if you use the option poEvalCommand, which invokes the system shell to run the specified command. See the documentation of ProcessOption for the meaning of these flags. options are additional flags that may be passed to startProcess. If env = nil (default) the environment is inherited of the parent process. args should not contain this argument! env is the environment that will be passed to the process. On many operating systems, the first command line argument is the name of the executable. args are the command line arguments that are passed to the process. If workingDir = "" the current directory is used (default). Command is the executable file, workingDir is the process's working directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |