Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by tillhm

  1. tillhm

    get a relative path

    I wrote this code on my own and if someone thinks its usefull, fell free to use it. namespace System.IO { public sealed class PathEx { public static string GetRelativePath(string sFolder, string sItem) { //check whether the files are on the same drive if (sFolder.ToUpper()[0] !=...
  2. tillhm

    get a relative path

    No, that's not what I mean. Extracting the folder name can be done by using System.IO.Path.GetDirectoryName(mystring); I want to get the relative path to myFile.txt if I am in the folder C:\Program Files. The relative path is ..\myFile.txt .. = go up one folder myFile.txt = the file Another...
  3. tillhm

    get a relative path

    Hello, I'm searching for a function that returns the relative path of two absolute paths passed as arguments. E.g. I'd like to get ..\myfile.txt if the absolute paths are C:\Program Files and C:\myfile.txt I'd like to know whether there is a function to merge a relative and an absolute path as...

Part and Inventory Search

Back
Top