The product I'm using is a Beijer HMI, currently i can generate a report and save it to a known location (my desktop - C:\Users\mrdav\Desktop).

I need to be able to search on my desktop for a file extension .xls and change its name.

When the report is generated by the HMI, it uses the date and time which means when the file is generated the name will be different every time.

On the press of a button i need to search my desktop for the .xls file and change its name to a variable.

// This is my variable with my program

string NewName = Globals.Tags.Tag1.Value;

The code that is generated needs to sit within the below example.

```
public partial class Screen1
{

    void Button1_Click(System.Object sender, System.EventArgs e)
    {

        // Code to be added here... 
    }

}

```

Hopefully someone can help, I’m using windows compact framework so limited on functionality.

Any questions please let me know.

Thanks in advance,

Dave