UPDATE command

Comments, questions, bug reports, etc.
Post Reply
excava
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
synchronicity
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.
abbodi86
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