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
UPDATE command
-
- Site Admin
- Posts: 472
- Joined: Sun Aug 02, 2015 10:31 pm
Re: UPDATE command
Update commands currently don't accept wildcards.
Re: UPDATE command
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 '%%#'"