i have a url for a file, such as http:\\\intranet\my folder\This is my document.doc i need to take that string and just return: This is my document.doc, how would i go about that?

Posted on 2009-04-17
Last Modified: 2012-05-06
I have a url for a file, such as folder/This is my document.doc I need to take that string and just return: This is my document.doc, how would I go about that?
Question by:wmm2464
    LVL 74

    Accepted Solution

    What about:
    System.IO.Path.GetFilename(" folder/This is my document.doc")

    Open in new window


    Author Comment

    Great! thank you that works beautifully! thank you so much for the assistance.
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    NP! Glad to help.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now