I will pass the filename and i want to get the path from the above string.. For ex.. if i pass "footer.txt" i want the result path as "G:\Test\Attach\footer.txt".. Can someone help me out?. I will be using C#. Can someone tell what String Methods will be useful.. Please it quite urgent..