Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to programmatically (not manually) delete the temporary directories that are created in MXTEMPDIR?

0
Posted

Is there a way to programmatically (not manually) delete the temporary directories that are created in MXTEMPDIR?

0

To remove the temp directory, you first need to clear it out (e.g. delete mx/*, where is the process id for the Fire process). Then you need to remove the directory itself. There is not a Fire command to do this, so you need to make a system call. For example, on a Windows NT machine, you would do this::CMD /C rmdir %MXTEMPDIR%\mx NOTE: You cannot delete the temporary files or directories for the currently executing process. So, this would need to be in the startup sequence for an application. It would look for all mx directories under the $MXTEMPDIR directory (using the dir command), and then delete them all. It would not be able to delete the temporary files or directories for any currently executing Fire processes.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123