flexiblen Pfad aus datei einlesen

  • Tag zusammen,

    ich möchte einen Pfad aus einer ini Datei einlesen und dann dort was hinkopieren.
    Ich möchte aber nicht den statischen Pfad angeben, sondern eben sowas wie %systemroot%\bla\bla.txt
    Ich weiß, dass es in AutoIt die Makros dafür gibt.
    Ich kann ja aber in meine Ini-File jetzt nicht @desktopdir reinschreiben.
    Weil dann liest er mir ja den String "@desktopdir" aus.
    ich will aber den flexiblen Pfad haben.

    Was gibt es da für Möglichkeiten??

    Grüße
    Ben

  • geh in eine auto it datei und drück F1, dann kommt die hilfe. Da stehen dann auch die macros unter macros reference

    Spoiler anzeigen

    @AppDataDir path to current user's Application Data
    @DesktopDir path to current user's Desktop
    @MyDocumentsDir path to My Documents target
    @FavoritesDir path to current user's Favorites
    @ProgramsDir path to current user's Programs (folder on Start Menu)
    @StartMenuDir path to current user's Start Menu
    @StartupDir current user's Startup folder
    @UserProfileDir Path to current user's Profile folder.

    Other macros for the computer system:
    @HomeDrive Drive letter of drive containing current user's home directory.
    @HomePath Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive.
    @HomeShare Server and share name containing current user's home directory.
    @LogonDNSDomain Logon DNS Domain.
    @LogonDomain Logon Domain.
    @LogonServer Logon server.
    @ProgramFilesDir path to Program Files folder
    @CommonFilesDir path to Common Files folder
    @WindowsDir path to Windows folder
    @SystemDir path to Windows' System (or System32) folder
    @TempDir path to the temporary files folder
    @ComSpec value of %comspec%, the SPECified secondary COMmand interpreter;
    primarly for command line uses, e.g. Run(@ComSpec & " /k help | more")