<p>I have a project group that contains a project I'm working on as well as some related component and packages. I prefer to keep the database links active during design-time. </p>

<p>I know how to write the code which would change the database file location, but in this case, I'm just using <code>".\data"</code> instead, for various design-time reasons. Unfortunately, using a relative folder means that Delphi needs to be "pointing" to the same folder that the project is in.</p>

<p>I'd like to be able to force the folder location to a different root, without using the "Save As" feature. Does anyone happen to know where the Delphi IDE retrieves that info?</p>

[{'answer_id': 16737, 'author': 'Jim McKeeth', 'author_id': 255, 'author_profile': 'https://Stackoverflow.com/users/255', 'pm_score': 1, 'selected': False, 'text': '<p>I am not sure I completely understand your question.</p>\n\n<ul>\n<li>If you are referring to the folder the IDE has as the current folder, then you can just change the shortcut that launches Delphi to set the current directory where ever you want it to be.</li>\n</ul>\n'}, {'answer_id': 28403, 'author': 'Re0sless', 'author_id': 2098, 'author_profile': 'https://Stackoverflow.com/users/2098', 'pm_score': 0, 'selected': False, 'text': '<p>You can change the location the project compliers and saves the dcu/unit/exe to in Project/Options under the Directories/Conditionals is that what you are looking for? </p>\n\n<p>I bevile there is also some settings for the DBE in the Tools menu, but I dont have them install at the moment (or i cant find them)</p>\n'}, {'answer_id': 62021, 'author': 'mj2008', 'author_id': 5544, 'author_profile': 'https://Stackoverflow.com/users/5544', 'pm_score': 0, 'selected': False, 'text': "<p>I'd say you should just hard-code the full path to the database. Not pretty, but it will always work. There are tools, like GExperts, that will ensure your database components are set to inactive when you save them, and that way you can be sure to set them correctly on the live computer at runtime.</p>\n\n<p>It would be nice to use relative paths, but that would be a function of the component and not the application really.</p>\n"}, {'answer_id': 70200, 'author': 'Lars Fosdal', 'author_id': 10002, 'author_profile': 'https://Stackoverflow.com/users/10002', 'pm_score': 0, 'selected': False, 'text': "<p>Do NOT use a path relative to .exe path.  That will get you into trouble with Windows XP in limited access mode, as well as with Windows Vista.</p>\n\n<p>Do you need one database for all users?\nUse  a path relative to All Users\\Application Data directory.</p>\n\n<p>Do you need separate databases per user?\nUse a path relative to user's private User\\Application Data directory.</p>\n\n<p>Do you need multiple databases per user?\nUse a path relative to user's My Documents directory.</p>\n\n<p>Use any of the above as default, but add registry keys that allow you to override the settings.</p>\n"}, {'answer_id': 73948, 'author': 'Eduardo', 'author_id': 9823, 'author_profile': 'https://Stackoverflow.com/users/9823', 'pm_score': 0, 'selected': False, 'text': '<p>I believe it gets that info from Tools -> Options -> Environment Options -> Environment Variables.\nTry to play with those (Add override).</p>\n'}, {'answer_id': 9633713, 'author': 'Nirav KAKU', 'author_id': 1183093, 'author_profile': 'https://Stackoverflow.com/users/1183093', 'pm_score': -1, 'selected': False, 'text': '<p>Tools -> Options -> Environment Options -> Environment Variables - BDSProjectsDir</p>\n'}, {'answer_id': 16358079, 'author': 'Ravaut123', 'author_id': 107018, 'author_profile': 'https://Stackoverflow.com/users/107018', 'pm_score': 2, 'selected': False, 'text': '<p>I have some projects in delphi7, Delphi2009, Delphi2010 and DelphiXE4  and also my project are not stored in my document.\nI force the save/default like this:</p>\n\n<p>Tools > Options > Environment Options > Default project</p>\n\n<p>for Delphi 2010  =>  U:\\Projects\\Rad Studio 2010\\Projects</p>\n'}]
['https://Stackoverflow.com/questions/15190', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']