using System;
using System.Diagnostics;
using System.IO;
class TestPathApp {
staticvoid Main(string[] args) {
Process p = Process.GetCurrentProcess();
ProcessModule pm = p.MainModule;
string s = pm.ModuleName;
Console.WriteLine(Path.GetFullPath(s));
Console.WriteLine(Path.GetFileName(s));
Console.WriteLine(Path.GetFileNameWithoutExtension(s));
Console.WriteLine(Path.GetDirectoryName(Directory.GetCurrentDirectory()));
Console.WriteLine(Path.GetPathRoot(Directory.GetCurrentDirectory()));
Console.WriteLine(Path.GetTempPath());
Console.WriteLine(Path.GetTempFileName());
}
}