Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not respecting temp/working directory settings #78

Closed
paradizelost opened this issue Apr 21, 2022 · 2 comments
Closed

Module not respecting temp/working directory settings #78

paradizelost opened this issue Apr 21, 2022 · 2 comments

Comments

@paradizelost
Copy link

The module is using %temp% directory for working space regardless of what is set in the 7zip program, and has no way to specify on the command line that i can find. It is not an option that is part of the custom initialization script from what i can tell either. This is causing large archive operations to fill c: drives on systems when there is ample space on the drive the archive is being placed.

@chrisdiphoorn
Copy link

Change the %temp% environment value for the User Account which is running the process.
Logon to the server with the account, Right-click This PC and click Properties, Click Advanced System Settings and then click Environment Variables. Select the TEMP variable and click Edit. TEMP and TMP might be defined as system variables or user variables, depending on how your system is set up. In the Variable value box, type the new folder location and click OK.
For example, type c:\temp.
Log off, and test

@thoemmi
Copy link
Owner

thoemmi commented Apr 13, 2023

Version v2.3.0 of 7Zip4Powershell adds an optional TempFolder parameter to Compress-7Zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants