Quote:
Originally Posted by Cesar82
Just out of curiosity, if I use it like this:
DiskSpan_x64.ini:
Code:
[External compressor:mpz,MPZ,mpzapi,MPZAPI]
header = 0
packcmd = "MEDIA\MPZ\mpzapi.exe" c <stdin> <stdout>
unpackcmd = "MEDIA\MPZ\mpzapi.exe" d <stdin> <stdout>
[External compressor:mpz_mtx,MPZ_MTX,mpzapi_mtx,MPZAPI_MTX]
header = 0
default = -c:64m -t:100p --mainpath=".\..\..\..\" --config="%MainPath%\DiskSpan_x64.ini" --tmppath="%MainPath%\..\TEMP"
packcmd = "OTHERS\MTX\Win64\MTX.exe" a:mpz {options} - - <stdin> <stdout>
unpackcmd = "OTHERS\MTX\Win64\MTX.exe" x:mpz {options} - - <stdin> <stdout>
And add MTX.ini file next to MTX.exe with the config:
MTX.ini
Code:
[MTX]
MainPath=.\..\..\..\
Config=%MainPath%\DiskSpan_x64.ini
TmpPath=%MainPath%\..\TEMP
Question is as follows:
Will the " -c:64m -t:100p" settings be applied to MTX.exe, or will they be ignored?
Thanks!
|
those settings are not ignored (
-c:64m -t:100p ).
ok cesar,
we use
MTX.ini to define only "
MainPath", "
ConfigFile" and "
TempPath".
let us consider,
if
MTX.exe doesn't find any
MTX.ini near
MTX.exe, it will look for
MTX.exe options (
--mainpath,
--config and
--tmppath). if those options are also not found, it uses its
default values.
in your case, there is
MTX.ini next to
MTX.exe. therefore, the "
--mainpath", "
--config" and "
--tmppath" options will be ignored.
but the only place to set values for "
-t:" and "
-c:" is the command line. so nothing can ignore those values.
finally, MTX.exe will ignore some options as the code below because you have used MTX.ini. (Marked in red).
Code:
[External compressor:mpz_mtx,MPZ_MTX,mpzapi_mtx,MPZAPI_MTX]
header = 0
default = -c:64m -t:100p --mainpath=".\..\..\..\" --config="%MainPath%\DiskSpan_x64.ini" --tmppath="%MainPath%\..\TEMP"
packcmd = "OTHERS\MTX\Win64\MTX.exe" a:mpz {options} - - <stdin> <stdout>
unpackcmd = "OTHERS\MTX\Win64\MTX.exe" x:mpz {options} - - <stdin> <stdout>
Extra: (not related to the question)
during decompression, MTX.exe doesn't retrieve values for "ChunkSize" from users. therefore it is better to use as follows.
Code:
[External compressor:mpz_mtx,MPZ_MTX,mpzapi_mtx,MPZAPI_MTX]
header = 0
default = -t:100p
packcmd = "OTHERS\MTX\Win64\MTX.exe" a:mpz -c:64m {options} - - <stdin> <stdout>
unpackcmd = "OTHERS\MTX\Win64\MTX.exe" x:mpz {options} - - <stdin> <stdout>