temp-files

How can I unlock a file that is locked by a process in .NET

I want my application to clean all the temp files it used, the problem is that not all the temp files are under my control, so I just want to "brutally" unlock them in order to delete them, something similar to what the unlocker does, but programatically. ...

Temp file that exists only in RAM?

I'm trying to write an encrpytion using the OTP method. In keeping with the security theories I need the plain text documents to be stored only in memory and never ever written to a physical drive. The tmpnam command appears to be what I need, but from what I can see it saves the file on the disk and not the RAM. Using C++ is there any ...

How can I automatically create (and remove) a temp directory in a Makefile?

Is it possible to have make create a temp directory before it executes the first target? Maybe using some hack, some additional target etc.? All commands in the Makefile would be able to refer to the automatically created directory as $TMPDIR, and the directory would be automatically removed when the make command ends. ...

PHP temp file names for uploads colliding

When a user uploads a file, randomly it gets replaced by another user's upload, I've finally tracked down the issue to PHP and the tmp file name being reused. Is there a way to fix this? Is there a way to make better random names? It seems to degrade over time, as in the random file name seed gets weaker? This is on PHP 5.2.8 and FreeBSD...

Deleting Java's "temporary internet files"

In the Java Control Panel on Windows there are settings for "temporary internet files" wherein all the applets and webstart stuff is cached. For certain users of our application this caching doesn't work properly and they need to delete all the files through the control panel before our webstart application will update itself properly. ...

EDITED: Where and how should download temp files?

Say I want to run an exe from the web, well obviously I rather download it to a temp folder.. run it from there, and delete it (or let the OS do so). Is there any convention how to do that, while being sure not to bomb into permissions issues, overriding exist file etc.? Thanks. EDIT I ment from a desktop application. BTW, I do have a...

Massive Temp Files Being Generated By Application - ASP.NET MVC/IIS 6

Hi All, I just recently put an ASP.NET MVC application I developed/tested/etc up to my company's production server (IIS 6). However, it is generating some massive temp files (up to 1GB!), which is a problem, since the server is running a 2GB partition. UPDATE: MORE INFO: The temp files are being put into the c:\windows\temp directory I...

How to move location of Atomikos's tm.out and *.epoch files?

I'm running a J2SE application that uses Atomikos which dumps it's numerous log files to the current directory. I'd like to move the location of these files to "/tmp", but I cannot locate a configuration property that I can set from within my Spring XML config file. The Atomikos documentation references a property: com.atomikos.icatch...