Create relative path from 2 absolutes
-
Hi! I need to make a relative path, using 2 absolutes paths. Assume path1: C:\MyProjects\Tool\Tool.exe path2: C:\MyProjects\Docs\MyDoc.txt The output should be ..\Docs\MyDoc.txt How do I create the relative path?? Thanks and best regards, Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) (doesn't work on NT) -
Hi! I need to make a relative path, using 2 absolutes paths. Assume path1: C:\MyProjects\Tool\Tool.exe path2: C:\MyProjects\Docs\MyDoc.txt The output should be ..\Docs\MyDoc.txt How do I create the relative path?? Thanks and best regards, Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) (doesn't work on NT)See
PathRelativePathTo()
/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
Hi! I need to make a relative path, using 2 absolutes paths. Assume path1: C:\MyProjects\Tool\Tool.exe path2: C:\MyProjects\Docs\MyDoc.txt The output should be ..\Docs\MyDoc.txt How do I create the relative path?? Thanks and best regards, Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) (doesn't work on NT)You can use the _fullpath function in C/C++.