Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #107.80K
~508 People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for JerryShaw

This is more portable and robust. [code] string fileName = "C:\someDir\someFile.txt"; string directoryName = Directory.GetParent(fileName).FullName; [/code]

Member Avatar for Derek W
0
508

The End.