Horje
c# get path without filename Code Example
c# get path without filename
    string fileAndPath = @"c:\webserver\public\myCompany\configs\promo.xml";

    string currentDirectory = Path.GetDirectoryName(fileAndPath);

    string fullPathOnly = Path.GetFullPath(currentDirectory);
c# get path without filename
var fn = openFileDialogSapTable.FileName;
var currentPath = Path.GetFullPath( fn );
currentPath = Directory.GetParent(currentPath).FullName;




Csharp

Related
c# AllowSynchronousIO to true Code Example c# AllowSynchronousIO to true Code Example
c# loop through datatable Code Example c# loop through datatable Code Example
c# read text file to list string Code Example c# read text file to list string Code Example
c# initialize dictionary Code Example c# initialize dictionary Code Example
unity check for internet connection Code Example unity check for internet connection Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8