If your run pawncc
with no arguments, it will give you help text on how to use it and what arguments it takes (this is common for software that you run from a terminal in this fashion). That help indicates that pawncc
support the -o
option to tells it where to put the output file.
Assuming that you wanted your output files to go into a folder named output
in the same folder as the input file, you could add the following argument to your cmd
list:
"-o${file_path}/output/${file_base_name}"
That says that the output file should be named the same as the current file, but in a folder named output
in whatever folder the current file is sitting in.
Alternatively if you have a set location in mind, you could just hardcode that path directly, though you will need to end the path in ${file_base_name}
because this argument is expecting you to provide the name of the file it should be creating.