Click here to Skip to main content
15,907,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have a code where in I have one file. I should get the full path of that file. How can I get the relative path of a file? Please help me.
Posted
Updated 9-May-11 20:29pm
v3

PathRelativePathTo Function
Creates a relative path from one file or folder to another.

http://msdn.microsoft.com/en-us/library/bb773740%28VS.85%29.aspx
 
Share this answer
 
v2
Comments
Jijesh Balakrishnan 10-May-11 1:49am    
Thank You
Hi,
You can use GetModuleFileName() .
Thanks,
Satheesh
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900