![]() You don't need Invoke-Expression just run the command with the parameters you need. ![]() : C:\ok.txtĮdited the function to allow spaces and run silently. ![]() If you do not have rights you will end up with the error you are getting nowĮRROR: Can not open output file : Accès refusé. Make sure you have access to the folder you are trying to unzip to So here is what you are doing in function form to clean it up a bit Function Open-7ZipFile) " `"$Source`""Īnd here is how to run it Open-7ZipFile -ExePath7Zip "C:\Program Files\7-Zip\7z.exe" -Source "C:\Users\touff\OneDrive\Bureau\0\Encrypted Zip\test.zip" -Destination "C:\Users\touff\OneDrive\Bureau\0\Encrypted Zip\foldertest" -Password "Password" = C:\Users\touff\OneDrive\Bureau\0\Encrypted Zip\test.zipĮRROR: Can not open output file : Accès refusé. $command = "
0 Comments
Leave a Reply. |