<p>There is a GUI ADM2 Progress v9 application using AppServer. </p>

<p>It needs to give users an ability to view MS Excel files stored on the AppServer. So far it:</p>

<ol>
<li>Pulls .xls file from AppServer to a local drive.</li>
<li>Fires up a copy of MS Excel and opens the file.</li>
</ol>

<p>The problem is that the temporary file on the local drive needs to be removed once it's no longer required. Any hints?</p>

If you are "firing up a copy of Excel", is there any special reason you can't just point that "fired-up" Excel application at the file on your App Server?
If you are starting Excel from a command-line shell, you could just go
```
Excel.exe "http://myserver/myexcelbook.xls"
```
right?
If you are opening it via something like Office Interop Assemblies, then you can key off of the
```
Application.WorkBookBeforeClose
```
event like
```
```
ThisMethodHandlesTheWorkbookBeforeCloseEvent()
{
  DeleteTheFile();
}
```
```