Is there a win32 function that will tell me if a path is relative or absolute?
Thanks,
As jeffamaphone said: You can use the Shlwapi function PathIsRelative() to determine of a given path is relative or absolute.
But I thought I'd add that you can easily convert a Relative Path to an Absolute Path using _fullpath(), and from an Absolute Path to a Relative Path using PathRelativePathTo().
Hope this helps!
PathIsRelative()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With