C# 获得当前运行程序所在的目录
using System; using System.IO; class DirectoryCurrent { public static void Main() { Console.WriteLine ("Current directory: \"{0}\"", Directory.GetCurrentDirectory()); } }
C# 获得当前运行程序所在的目录
using System; using System.IO; class DirectoryCurrent { public static void Main() { Console.WriteLine ("Current directory: \"{0}\"", Directory.GetCurrentDirectory()); } }