Reading filename and insert

Discussion in 'ASP General' started by Joey Martin, Jan 24, 2006.

  1. Joey Martin

    Joey Martin Guest

    Can someone help me with a quick script.

    I need to browse filenames in a directory and insert them into my sql
    table. I want to run this in an ASP page. I know how to connect to the
    database, etc. I just need the script on how to get the filenames.

    directory: C:\websites\photos
    tablename: photos
    fieldname: photoname

    *** Sent via Developersdex http://www.developersdex.com ***
     
    Joey Martin, Jan 24, 2006
    #1
    1. Advertising

  2. Joey Martin wrote:
    > Can someone help me with a quick script.
    >
    > I need to browse filenames in a directory and insert them into my sql
    > table. I want to run this in an ASP page. I know how to connect to the
    > database, etc. I just need the script on how to get the filenames.
    >
    > directory: C:\websites\photos
    > tablename: photos
    > fieldname: photoname
    >

    http://www.aspfaq.com/show.asp?id=2039

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.
     
    Bob Barrows [MVP], Jan 24, 2006
    #2
    1. Advertising

  3. Joey Martin

    Tim Slattery Guest

    Joey Martin <> wrote:

    >Can someone help me with a quick script.
    >
    >I need to browse filenames in a directory and insert them into my sql
    >table. I want to run this in an ASP page. I know how to connect to the
    >database, etc. I just need the script on how to get the filenames.


    Under normal security arrangements, you do not have access to the
    client's file system.

    --
    Tim Slattery
    MS MVP(DTS)
     
    Tim Slattery, Jan 24, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9l?=

    Extract filename from a filename typed by user

    =?Utf-8?B?Sm9l?=, Aug 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,035
    Travis Murray
    Aug 24, 2004
  2. Replies:
    1
    Views:
    1,501
    Roland de Ruiter
    Jun 15, 2006
  3. Ed
    Replies:
    10
    Views:
    46,002
    alok000707
    Jul 13, 2010
  4. Beauregard T. Shagnasty

    Re: filename.gif or filename.gif.jpg?

    Beauregard T. Shagnasty, May 30, 2008, in forum: HTML
    Replies:
    1
    Views:
    761
    Jonathan N. Little
    May 30, 2008
  5. Stefano Crocco
    Replies:
    0
    Views:
    150
    Stefano Crocco
    Nov 14, 2008
Loading...

Share This Page