Hello! I have xxx.exe and yyy.exe . When you run the xxx.exe file xxx.exe it launches yyy.exe . But how to find out the path to the yyy.exe file via xxx.exe ?

  • one
    If you don't know, then how does the program find out then? - Alex Kapustin

1 answer 1

I found everything myself.

Function: FileSearch (const FileName, DirList: string): string;

Module: SysUtils
Description: The function searches for the FileName file in the directories specified in the DirList parameter. The file name must be in DOS format. The DirList directory list is a string containing the names of directories separated by semicolons (for example, 'C:\;C:\WINDOWS;C:\WINDOWS\TEMP' ). If the file is found, the function returns the full path to the file, otherwise the empty string is returned.