export newest / last image only

Comments, questions, bug reports, etc.
Post Reply
Tokener
Posts: 20
Joined: Mon Sep 10, 2018 11:18 pm

export newest / last image only

Post 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.
synchronicity
Site Admin
Posts: 472
Joined: Sun Aug 02, 2015 10:31 pm

Re: export newest / last image only

Post 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.
Post Reply