Page 1 of 1

export newest / last image only

Posted: Mon May 18, 2020 10:35 am
by Tokener
Hello everybody
Is there a command line to export the very last created image from one wim to another?
Using "-1" to express the last one doesn't work.

Code: Select all

WIMLIB-IMAGEX.EXE export "source.esd" "-1" "export.wim" --include-integrity  --threads=8
Best Regards T.

Re: export newest / last image only

Posted: Tue Jun 02, 2020 4:39 am
by synchronicity
No, this isn't currently supported, except in the special case of the --update-of option. FWIW, I've wanted to implement this, but it's a bit difficult since wimlib-imagex uses the getopt_long() function to parse its command-line arguments, and getopt_long() considers anything beginning with "-" to be a command-line option (unless the user passes "--" as a previous argument). So it's not straightforward to make it work. It's possible, though.