Delphi .cfg file Paths

Hi the path list in my project CFG file is too long, how can i define a path shortcut like $(BDS) Thank you

-------------Problems Reply------------

'Options' dialog -> 'Environment Options' -> 'Environment Variables'. This page has a section 'User overrides'. That's where you define your shortcut. You can use a fully qualified path or the already defined '$(BDS)' for variable value. Example:

Variable Value
CGR $(BDS)\..\..
THR S:\Dev\Codegear\3rd

Later in the library paths use them like $(THR)\JVCL\....

Category:delphi Views:0 Time:2011-02-11

Related post

  • Opening File paths with spaces in Delphi 5 2009-05-07

    (Using Delphi 5) I am attempting to open a log file using the following code: // The result of this is: // C:\Program Files\MyProgram\whatever\..\Blah\logs\mylog.log fileName := ExtractFilePath(Application.ExeName) + '..\Blah\logs\mylog.log'; // The

  • Delphi - TIdAttachment, remove path from file name of attachment 2012-03-12

    I am generating emails with attachments thru a Delphi program using Indy 10 and TIdAttachment. The file location/name is stored in a database table as //server/files/attachments/MyAttachment.pdf. I am attaching the file to the email as follows: // Ad

  • Running Flight SimulatorX in Widows8. What is the cure for the error message "Scenery CFG file error. Invalid Remote Path in Scenery fArea 120"? 2014-11-30

    Running Flight SimulatorX in Widows8. What is the cure for the error message "Scenery CFG file error. Invalid Remote Path in Scenery Area 120"? Ujnableto acquire scenery files fro c:drive or from FSX scenery library. --------------Solutions----------

  • What is the best way to share Delphi source files among projects? 2008-11-03

    What is the best way to share Delphi source files among projects? Clarification: We want to use a single source file in multiple Delphi projects. We've been using our SCM tool to put the same file into multiple folders, but this is not a super-elegan

  • how to read data from CFG file for iphone 2010-08-06

    I want to read data from a CFG (configuration file). How do I read it? Is it the same as XML? lets say i have this text messge in text.cfg Restaurant,tab0.png,tab0/index1.html Shop,tab1.png,tab1/index1.html Office,tab2.png,tab2/index1.html Apartment,

  • how to change flash player global setting by some program or by changing some .cfg file 2010-08-19

    my project is just try to access some locally stored swf file but it falls under sandboxType localWithFile and localWithNetwork. then i google for this and answer is for using both our sandBoxType must falls in localTrust. to do so we have to set our

  • Where to keep Delphi DCU files? 2010-11-12

    Currently I have not set any specific output directory for Delphi DCUs in my main project. This results in the DCU files ending up in the same directory as my .pas source files. To me, this feels ugly as I don't like the idea of mixing .pas and .dcu

  • Parsing a .cfg file using Ruby? 2011-01-07

    I have a .cfg file with the following data: *.*.key_val = { key1= "value1"; key2 = "value2"; key3 = "value3"; }; I want to read this file and store the key value pairs in a hash @var[key][val]. How it can be done? --------------Solutions-------------

  • setuptools/easy_install does not install *.cfg files and locale directories? 2012-02-24

    I have a little problem with setuptools/easy_install; maybe someone could give me a hint what might be the cause of the problem: To easily distribute one of my python webapps to servers I use setuptools' sdist command to build a tar.gz file which is

  • Can't save text added to .CFG files. 2013-11-28

    Hello! I'm new to Windows 7 (As is practically everyone, seeing as how it's a new OS...) and I'm currently running Flight Simulator X Deluxe Edition. In the past, on my XP machine, I enjoyed adding scenery items, aircraft repaints, etc. and in order

  • Add jar file path added in library project in PROGUARD 2014-12-11

    I have started including proguard in my project. But getting few warning. I am able to eliminate the warning by adding -dontwarn**. in proguard.cfg file. Every thing is okk, but I want to eliminate the -dontwarn command entirely from my p

  • ICE Faces fileInput file path and file name properties 2008-08-13

    I'd like to utilize an ICE Faces fileInput control to fill in the file path & file name for the input to an input field on a web page based on file that the user selects. How can I capture these properties without actually performing any file tra

  • How to get the file path from HTML input form in Firefox 3 2008-09-17

    We have simple HTML form with <input type="file">, like shown below: <form> <label for="attachment">Attachment:</label> <input type="file" name="attachment" id="attachment"> <input type="submit"> </form> In I

  • How can I load xml from a url instead of a file path in .NET? 2008-09-18

    We currently have code like this: Dim xDoc = XDocument.Load(myXMLFilePath) The only way we know how to do it currently is by using a file path and impersonation (since this file is on a secured network path). I've looked at XDocument.Load on MSDN, bu

  • In ASP.NET how you get the physcial file path when HttpContext.Current is NULL? 2008-09-20

    I'm working with DotNetNuke's scheduler to schedule tasks and I'm looking to get the physical file path of a email template that I created. The problem is that HttpContext is NULL because the scheduled task is on a different thread and there is not h

  • Obtain file path of C# save dialog box 2008-10-07

    I've got a save dialog box which pops up when i press a button. However i dont want to save a file at that point, i want to take the name and place it in the text box next to the button, for the name to be used later. Can anybody tell me how to obtai

  • file path portability 2008-11-10

    I have a program that I need to run under *nix and windows. because the program takes file paths from files the issue is what to do about the \ vs / issue. My current thought is to put in a regex that converts the wrong one to the right one depending

  • How do you normalize a file path in Bash? 2008-11-12

    I want to transform /foo/bar/.. to /foo Is there a bash command which does this? Edit: in my practical case, the directory does exist. --------------Solutions------------- Try realpath. Bonus: it's available as a bash command and in the standard linu

  • File path as MVC route argument 2008-11-27

    Part of my application maps resources stored in a number of locations onto web URLs like this: http://servername/files/path/to/my/resource/ The resources location is modelled after file paths and as a result there can be an unlimited level of nesting

Copyright (C), All Rights Reserved.

processed in 0.158 (s). 11 q(s)