Root Directory

Started by
1 comment, last by Tallitus 18 years, 3 months ago
How do you obtain the directory in which the application resides in C#??
Advertisement
Quote:Original post by brwarner
How do you obtain the directory in which the application resides in C#??

  DirectoryInfo di = new DirectoryInfo(".");  String strRoot = di.FullName;

Need to include the System.IO namespace. :)
Check out System.Application.StartupPath and System.Application.ExecutablePath as well.

This topic is closed to new replies.

Advertisement