UPDATE command

Comments, questions, bug reports, etc.
Post Reply
Posts: 1
Joined: Fri Jan 21, 2022 8:13 pm

UPDATE command

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

Re: UPDATE command

Post by synchronicity »

Update commands currently don't accept wildcards.
Posts: 9
Joined: Wed Jan 11, 2017 4:14 pm

Re: UPDATE command

Post 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 '%%#'"
Post Reply