I want to delete a couple of folders containing programs I added into the installed WinRE.
I want to use commands lines in the BuildScript.cmd
How to delete contents of a mounted wim file
-
- Posts: 171
- Joined: Mon Apr 17, 2023 4:08 am
Re: How to delete contents of a mounted wim file
rmdir [folder] /s /q
Re: How to delete contents of a mounted wim file
I tried that command before but something strange happens.
Example:
Then I re-create the installed WinRE,
After that I boot the installed WinRE and go to X:\Program Files\ and indeed the folder is gone.
Then I come back to my BuildScript.cmd file and delete the command line.
After that I re-create the installed WinRE build.
Then I boot the build, go to X:\Program Files\ and surprisingly the folder reappears with all its contents.
Example:
Code: Select all
rmdir "%TBWinPE_MountPath%\Program Files\Program for partitioning" /S /Q
After that I boot the installed WinRE and go to X:\Program Files\ and indeed the folder is gone.
Then I come back to my BuildScript.cmd file and delete the command line.
After that I re-create the installed WinRE build.
Then I boot the build, go to X:\Program Files\ and surprisingly the folder reappears with all its contents.
-
- Posts: 171
- Joined: Mon Apr 17, 2023 4:08 am
Re: How to delete contents of a mounted wim file
Sounds like you're looking at a restored version of the .wim file, after the cmd runs.
Re: How to delete contents of a mounted wim file
Alright, I started anew with a fresh clean winre.wim following this guide:
Repairing the Windows Recovery Environment (WinRE)
I think it's better this approach.
Repairing the Windows Recovery Environment (WinRE)
I think it's better this approach.