Recent

Author Topic: Absolute path of a project folder restored from backup  (Read 4504 times)

Relativity

  • Full Member
  • ***
  • Posts: 103
Absolute path of a project folder restored from backup
« on: June 27, 2018, 09:39:47 am »
A project folder of mines has been deleted from C:, but I have a copy of the whole folder - including all subfolders - on a DVD.
So, I simply have to copy the folder from the backup-DVD to C:.
But I don't remember exactly by heart what the project folder's absolute path on C: was.

Does the absolute path necessarily have to be the same as it was before ?
I did not rename anything. Also the project folder itself, of course, has the original name.

Thanks.


"How'm I gonna get through?"
  -- Pet Shop Boys

wp

  • Hero Member
  • *****
  • Posts: 11853
Re: Absolute path of a project folder restored from backup
« Reply #1 on: June 27, 2018, 09:50:12 am »
Just copy it to wherever you want. Lazarus should only use relative paths (unless you specified absolute paths somewhere). After loading the project into Lazarus, look into the Project Options "Compiler Options" > "Path" to see whether there are any absolute paths.

Don't forget to erase the ReadOnly attribute of all files after copying from DVD/CD.

Relativity

  • Full Member
  • ***
  • Posts: 103
Re: Absolute path of a project folder restored from backup
« Reply #2 on: June 27, 2018, 02:35:05 pm »
wp, I followed your instructions and everything worked fine.
Thank you very much.
Thanks for the hint about the "Read only" attribute!
"How'm I gonna get through?"
  -- Pet Shop Boys

 

TinyPortal © 2005-2018