PDA

Click to See Complete Forum and Search --> : Breaking Text Apart


Polariss
Nov 11th, 2006, 09:36 AM
I have a minor problem with a C# web app. I am trying to retrieve just the application name that an exception has occured. Basically when you retrieve the application path it comes up as the whole path. I need this broken up where just the application name appears.

D:\Inetpub\wwwroot\AppError

I just want AppError to appear. The problem is this has to dynamically do this because it might not be a web application sometimes.

Thanks in advance,
Pol

penagate
Nov 11th, 2006, 10:46 AM
System.IO.Path.GetFileName()

Polariss
Nov 11th, 2006, 11:24 AM
Thanks.