19

Im sure this will be a simple one but have a project that started as a test.
When it was created it was saved as "Project2.dpr"

Now the test is no longer a 'test', i would like to change the projects name to something more meaningful.

whats the best way to do this?

Any issues with just changing the file name and the Program line to the new name? i.e.

meaningful.dpr

Program meaningful;   

Note:Delphi 7 if it matters

Christopher Chase
  • 2,840
  • 6
  • 36
  • 57

2 Answers2

41

Just do "Save Project as" from the file menu in Delphi giving it the name you want and, later on when you feel like, remove the Project2.* files from your folder as they are not needed anymore.

Francesca
  • 21,452
  • 4
  • 49
  • 90
19

FYI: Starting with Delphi 8 you can simply right-click the project in the project manager and select "Rename" (or simply press F2). This has the benefit over the "Save As" approach that you don't end up with a copy.

(sorry, no Delphi 7 - thanks to Lars for the update)

Oliver Giesen
  • 9,129
  • 6
  • 46
  • 82
  • Not possible in Delphi 7. But in Delphi 8 and higher you can. I prefer this even over the Save Project as, since you don't create a copy. – Lars Truijens Nov 18 '08 at 14:41
  • 3
    Also, when renaming, you can use ..\ or \ to move the project (and even more convenient: units/forms) to move the files to different folders. – dummzeuch Jan 07 '09 at 08:46
  • I just "saved project as" in delphi 7 (With Build 8.1 patch) – nurettin Jul 06 '17 at 10:28