C# - Get Path from file path

String _file = "c:\monthly_report\2012\07_JUL\2012_07.xls";
String _path = System.IO.Path.GetDirectoryName(_file);

>> Result _path = c:\monthly_report\2012\07_JUL

Popular posts from this blog

SAP CPI - Loop Process Call with SuccessFactor (oData V2)

C# - BASE64 to Image

HTML - ToolTip