IIS ASP - Reading filename and insert

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > January 2006 > Reading filename and insert





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Reading filename and insert
Joey Martin

2006-01-24, 6:10 pm

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.codecomments.com ***
Bob Barrows [MVP]

2006-01-24, 6:10 pm

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.


Tim Slattery

2006-01-24, 6:10 pm

Joey Martin <joey@kytechs.com> 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)
Slattery_T@bls.gov
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com