Results 1 to 4 of 4

Thread: Gegevens schrijven naar een bovenliggende map

  1. #1

    Gegevens schrijven naar een bovenliggende map

    Hallo allemaal,

    Ik heb de volgende mappen structuur:
    Code:
    D:\...\...\Applicaties
                    |
                    +--- Data
                    |
                    +--- Utils
                    |
                    ...
    In de map Utils staat een programma A.EXE.
    De vraag is hoe kan ik gegevens schrijven in de map Data m.b.v. A.EXE?

    H.G. Frans

  2. #2
    Als je "current directory" Utils is dan kun je "..\Data\filename" gebruiken.

    Als je niet zeker weet wat je "current directory" is dan kun je het beste ExtractFilePath(Application.ExeName) + '..\Data\filename'; gebruiken.

  3. #3
    Senior Member Wok's Avatar
    Join Date
    Dec 2002
    Location
    Alkmaar
    Posts
    2,085
    ;
    10.4.2, Delphi2010, of Lazarus 2.2.0

  4. #4
    mov rax,marcov; push rax marcov's Avatar
    Join Date
    Apr 2004
    Location
    Ehv, Nl
    Posts
    10,357
    De kern functie voor path normalizatie is expandfilename(). FPC heeft daarnaast ook nog speciale UNC versies (https://www.freepascal.org/docs-html...cfilename.html)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •