Oh, sorry. Double quotes solved my problem. $ &$env:programfiles\7-Zip\7z x .\Test.7z -o"$env:userprofile\Documents" Everything is Ok
Hello, How can I use environment variables with -o switch when extracting in PowerShell? Version : 7-Zip 18.01 (x64) In Command Prompt : $ "%programfiles%\7-Zip\7z" x Test.7z -o%userprofile%\Documents Everything is Ok In PowerShell : $ &$env:programfiles\7-Zip\7z x .\Test.7z -o$env:userprofile\Documents ERROR: Can not create output directory: $env:userprofile\Documents\ Kind regards.
Hello, In fact, I wanted to benefit of choosing executable files automatically of...
Thank you so much. I'll be waiting for being able to do it in just one step. Because...
Hello, I want to create an archive that contains both executable files such as dll,...