-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need a fresh temporary directory to do some work in a shell script. When the work is done (or if I kill the job midway), I want the script to change back to the old working directory and wipe out the temporary one. In Ruby, it might look like this:
require 'tmpdir'
Dir.mktmpdir 'my_build' do |temp_dir|
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What's the best way to get a temp directory name in Windows? I see that I can use GetTempPath and GetTempFileName to create a temporary file, but is there any equivalent to the Linux / BSD mkdtemp function for creating a temporary directory?
>>> More
-
as seen on Super User
- Search for 'Super User'
I am using Windows 8.1 Pro 64-bit.
I see this error, almost everytime I launch an executable file (to install it) but not for all of them. I don't see the error when I use Run as Administrator.
I looked around, and found a solution: I needed to give permissions to the current user for the temp…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I recently wrote a script which queries PyPI and downloads a package; however, the package gets downloaded to a user defined folder.
I`d like to modify the script in such a way that my downloaded files go into a temporary folder, if the folder is not specified.
The temporary-files folder in *nix…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to run a command-line process (which is extraction of a .7z archive) on a file that lies in a temporary folder on the windows user temp directory
(C:\Documents and Settings\User\Local Settings\Temp), using Process in my c# app.
I think the process return error that happens because of "access…
>>> More