C# rename path name

Its a user selected path that needs to be re-saved with "1" before each file that is used. Some of those lines are were to test and are not used.
The issue I have now is to save the file automatically when a "no" button is clicked for a separate delete box .