Относительный путь - в абсолютный
Относительный путь - в абсолютный
Чего-то я туплю...
Подскажите, пожалуйста, есть ли в Win или FAR API какая-то стандартная функция для преобразования относительных путей (типа Dir, ..\Dir или \Dir) в абсолютные (типа C:\Dir)?
Подскажите, пожалуйста, есть ли в Win или FAR API какая-то стандартная функция для преобразования относительных путей (типа Dir, ..\Dir или \Dir) в абсолютные (типа C:\Dir)?
Съешь мыша – стань настоящим клавишником!
- zg
- zero-gravity
- Posts: 6035
- Joined: Tue 15 Mar, 2005 17:36
- Location: riga
- Been thanked: 185 times
- Contact:
документацию до конца читать надо:HaRT wrote:Судя по документации, эта функция принимает только имя файла, а не относительный путь.
GetFullPathName merges the name of the current drive and directory with the specified file name to determine the full path and file name of the specified file. It also calculates the address of the file name portion of the full path and file name. This function does not verify that the resulting path and file name are valid or that they refer to an existing file on the associated volume.