ZenHAX
https://zenhax.com/

Error: wrong command-line argument
https://zenhax.com/viewtopic.php?f=13&t=11147
Page 1 of 1

Author:  ekvirjd [ Wed Apr 03, 2019 10:07 pm ]
Post subject:  Error: wrong command-line argument

Hello.

quickbms -o "scriptNX.bms" "../IPK\extracted\%songcode%\cache\itf_cooked\nx\world\maps\%songcode%\timeline\pictos\*.ckd" "..\temp".

Why it doesn't work?

Attachments:
scriptNX.bms [193 Bytes]
Downloaded 43 times

Author:  aluigi [ Thu Apr 04, 2019 12:24 pm ]
Post subject:  Re: Error: wrong command-line argument

You can't use the * wildcard because the arguments must be 3: script, file/folder, output folder
With the wildcard they become: script, file1, file2, ..., fileN, output folder
Additionally the * char is interpreted by Windows EVEN when it's used in quotes creating a huge mess.

Use the -F filter for doing the job:
Code:
quickbms -F "{}.ckd" -o "scriptNX.bms" "../IPK\extracted\%songcode%\cache\itf_cooked\nx\world\maps\%songcode%\timeline\pictos" "..\temp"

Let me know if it works now

Author:  ekvirjd [ Thu Apr 04, 2019 2:04 pm ]
Post subject:  Re: Error: wrong command-line argument

aluigi wrote:
You can't use the * wildcard because the arguments must be 3: script, file/folder, output folder
With the wildcard they become: script, file1, file2, ..., fileN, output folder
Additionally the * char is interpreted by Windows EVEN when it's used in quotes creating a huge mess.

Use the -F filter for doing the job:
Code:
quickbms -F "{}.ckd" -o "scriptNX.bms" "../IPK\extracted\%songcode%\cache\itf_cooked\nx\world\maps\%songcode%\timeline\pictos" "..\temp"

Let me know if it works now


Thank you! It works.

Author:  aluigi [ Thu Apr 04, 2019 9:09 pm ]
Post subject:  Re: Error: wrong command-line argument

Ah, something that I think may be interesting, quickbms already implements the automatic handling of the wildcard characters.
In short if you replaced * with {} in your original command-line it would magically work :)

Yes, it works with * too, but Windows intercepts it before.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/