Help trimming off filename from path
- From: "PvtPile" <derek.peldo@xxxxxxxxx>
- Date: 2 May 2006 14:56:47 -0700
I've got a form where i need to pull both the directory of a filename
and the directory with the filename of an .inf file... I figured the
easiest way to do this was to have an <input id=test type=file
runat=server> control for the user to find the .inf file, and then make
vb cut off the filename upon submission of the form. I just can't
figure out how to trim off the filename leaving just the directory it's
located in.
just as a test i'm trying to display the content as follows
Label1.Text = formINFLocation.Value.Trim(formDriverINF.FileName)
I did this hoping to dynamically trim off any inf filename that is
chosen... though it seems that the Trim function does not work the way
i was assuming it did. Is there another way to remove the filename from
this location? I have a hunch it's far more complicated than my simple
idea here. :D
.
- Follow-Ups:
- Re: Help trimming off filename from path
- From: Herfried K. Wagner [MVP]
- Re: Help trimming off filename from path
- Prev by Date: Re: Accessing Foxpro Database
- Next by Date: Outlook session on client PC
- Previous by thread: Re: "Send To Mail Recipient"
- Next by thread: Re: Help trimming off filename from path
- Index(es):
Relevant Pages
|