Как узнать полный путь к файлу?
Например если в командной строке ввести explorer, то запустится Проводник.
Полный путь к проводнику C:\Windows\explorer.exe
Система сначала просто ищет в каталоге приложения, потом начинает просматривать windows, переменная PATH тоже может задействоваться...
If this parameter is NULL, the function searches for a matching file in the following directories in the following sequence:
- The directory from which the application loaded.
- The current directory.
- Windows 95: The Windows system directory. Use the GetSystemDirectory function to get the path of this directory.
Windows NT: The 32-bit Windows system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is SYSTEM32.- Windows NT: The 16-bit Windows system directory. There is no Win32 function that obtains the path of this directory, but it is searched. The name of this directory is SYSTEM.
- The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
- The directories that are listed in the PATH environment variable.
Сейчас этот форум просматривают: SemrushBot и гости: 0