Page 1 of 1

wimlib-imagex.exe update from PowerShell

Posted: Sun Aug 13, 2017 10:06 pm
by pxeboot
Sorry if this has been asked before, but I am unable to run this command from PowerShell:

Code: Select all

wimlib-imagex.exe update boot.wim 1 < update.txt
Here is the error that is generated:

Code: Select all

The '<' operator is reserved for future use.
The exact same command is successful in cmd.exe. Is there another character that can be used to specify a filelist instead of '<'?

Re: wimlib-imagex.exe update from PowerShell

Posted: Tue Aug 15, 2017 11:13 am
by JFX
Stdin redirection is different in powershell:

Code: Select all

GET-CONTENT update.txt | wimlib-imagex.exe update boot.wim 1

Re: wimlib-imagex.exe update from PowerShell

Posted: Sat Aug 19, 2017 2:57 am
by pxeboot
JFX wrote:Stdin redirection is different in powershell:

Code: Select all

GET-CONTENT update.txt | wimlib-imagex.exe update boot.wim 1
Thank you. That was surprisingly simple and works perfectly.