Page 1 of 1

UPDATE command

Posted: Fri Jan 21, 2022 8:14 pm
by excava
How to use wildcard in update command to delete files?

This doesn't work.

delete --force /Windows/System32/config/*.LOG1
delete --force /Windows/System32/config/*.LOG2

Re: UPDATE command

Posted: Fri Jan 21, 2022 11:02 pm
by synchronicity
Update commands currently don't accept wildcards.

Re: UPDATE command

Posted: Thu Jan 27, 2022 3:08 am
by abbodi86

Code: Select all

for /f %%# in ('wimlib-imagex.exe dir install.wim 1 --path=/Windows/System32/config ^| findstr /i "\.log"') do wimlib-imagex.exe update install.wim 1 --command="delete --force '%%#'"