   Relative Paths in VB.Net
  How do I make a relative path in Visual Basic .NET?  I have an access database that is placed in a folder "db". This is placed directly under where the application is installed. My question is how do I make a path that points to this folder regardless where the application is installed.Thanks in advance. Björn 
  That''s a good question, and if anyone has a magic "this *always works*" answer, I''m all ears.In the main (or WinMain) function, the first ''argv'' tells you where the program was launched from - you could append your relative path to that.  This breaks when the "Start-In" directory isn''t set to the same place the exe is at.You could store the root path in the registry, but then you can''t just copy the db from one computer to another and have it work.You have the user set an environment variable, ala *nix style.... (this method is blowy a-mon-avis). ;  Well, what about just using the base directory set for the AppDomain? This is the directory the exe is located (as well as the other linkes assemblies).You can get the AppDomain by means of a statie method in the AppDomain class.Does not get easier than this.   RegardsThomas TomiczekTHONA Consulting Ltd.(Microsoft MVP C#/.NET) ;  System.Windows.Forms.Application.StartupPath 