Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get path without filename

    string fileAndPath = @"c:webserverpublicmyCompanyconfigspromo.xml";

    string currentDirectory = Path.GetDirectoryName(fileAndPath);

    string fullPathOnly = Path.GetFullPath(currentDirectory);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #path #filename
ADD COMMENT
Topic
Name
8+8 =