isolating file name?

Results 1 to 2 of 2

Thread: isolating file name?

  1. #1
    Join Date
    Dec 1969

    Default isolating file name?

    I have an HTML form where a user can use an input type="file" to send through a path of a file, e.g. <BR><BR>C:Inetpubwwwroot estimagesSK_FF0000.gif<BR><BR>what I want to do is to parse through the above on a response page and just isolate the file name, rather than that whole path. So I&#039;d want to say, for example, assign everything after the last &#039;/&#039; to a variable called &#039;filename&#039;, which in this case would be &#039;SK_FF0000.gif&#039;. <BR><BR>Thanks<BR><BR>Jim<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: isolating file name?

    &nbsp;<BR>fil="C:InetpubwwwrootimagesSK_FF0000.gif "<BR><BR>response.Write mid(fil,instrrev(fil,"\")+1,len(fil)-instrrev(fil,"\"))<BR><BR>jon..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts