473,772 Members | 2,244 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

retrieve a file

I know that you can retrieve data from a form using
Request.Form("n ame"), but how do you retrieve a file?
Jul 19 '05 #1
4 3032
<%
Dim FSO
Dim strFile
Dim strFiles

Set FSO = CreateObject("s cripting.filesy stemobject")

'Get all files in a specific folder
Set strFiles = FSO.GetFolder(S erver.MapPath(" ./")) ' ./ is the current
folder

'Uncomment below line and replace filename/path with the file you want,
then comment out the above line, and
'the For Next loop.....
' Set strFile = FSO.GetFile(Ser ver.MapPath("/default.asp"))

For Each strFile In strFiles
Response.Write strFile.Name
Next

Set FSO = Nothing
Set strFile = Nothing
Set strFiles = Nothing

%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
jandt <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I know that you can retrieve data from a form using
Request.Form("n ame"), but how do you retrieve a file?

Jul 19 '05 #2
"jandt" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I know that you can retrieve data from a form using
Request.Form("n ame"), but how do you retrieve a file?


http://support.microsoft.com/default...92&Product=asp
http://www.aspfaq.com/show.asp?id=2189
http://www.15seconds.com/focus/Upload.htm

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #3
I think he meant retrieving a file upload from an <input type=file> ...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steven Burn" <nobody@PVT_i t-mate.co.uk> wrote in message
news:ef******** ******@TK2MSFTN GP11.phx.gbl...
<%
Dim FSO
Dim strFile
Dim strFiles

Set FSO = CreateObject("s cripting.filesy stemobject")

'Get all files in a specific folder
Set strFiles = FSO.GetFolder(S erver.MapPath(" ./")) ' ./ is the current
folder

'Uncomment below line and replace filename/path with the file you want, then comment out the above line, and
'the For Next loop.....
' Set strFile = FSO.GetFile(Ser ver.MapPath("/default.asp"))

For Each strFile In strFiles
Response.Write strFile.Name
Next

Set FSO = Nothing
Set strFile = Nothing
Set strFiles = Nothing

%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
jandt <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I know that you can retrieve data from a form using
Request.Form("n ame"), but how do you retrieve a file?


Jul 19 '05 #4
Oh right.....lol woops

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Aaron Bertrand - MVP <aa***@TRASHasp faq.com> wrote in message
news:#a******** ******@TK2MSFTN GP11.phx.gbl...
I think he meant retrieving a file upload from an <input type=file> ...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steven Burn" <nobody@PVT_i t-mate.co.uk> wrote in message
news:ef******** ******@TK2MSFTN GP11.phx.gbl...
<%
Dim FSO
Dim strFile
Dim strFiles

Set FSO = CreateObject("s cripting.filesy stemobject")

'Get all files in a specific folder
Set strFiles = FSO.GetFolder(S erver.MapPath(" ./")) ' ./ is the current folder

'Uncomment below line and replace filename/path with the file you

want,
then comment out the above line, and
'the For Next loop.....
' Set strFile = FSO.GetFile(Ser ver.MapPath("/default.asp"))

For Each strFile In strFiles
Response.Write strFile.Name
Next

Set FSO = Nothing
Set strFile = Nothing
Set strFiles = Nothing

%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
jandt <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I know that you can retrieve data from a form using
Request.Form("n ame"), but how do you retrieve a file?



Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1732
by: Chung Leong | last post by:
My contribution to the comp.lang.php FAQ: ------------------------------------------------------------- Q: How do I retrieve a page from a web site? A: Pass a URL to file() or file_get_contents(). The former returns the contents as an array of lines. The latter returns the same as string. Example: $html = file_get_contents("http://www.cnn.com");
5
11201
by: David Rasmussen | last post by:
Some sites seem to be session driven in the sense that if I visit the homepage and do a few clicks I can navigate anywhere I want, but if I paste the current location into a new browser window after having navigated to some page, it doesn't work. It just returns to the start page or says "timeout" etc. This means that I can't read these pages from PHP with $string = file_get_contents('http://some.url/blah/deep/link');
16
3014
by: Daniel Tonks | last post by:
First, please excuse the fact that I'm a complete MySQL newbie. My site used forum software that I wrote myself (in Perl) which, up until now, has used flat files. This worked fine, however lately I've been wanting to do more stuff with user accounts, and had been eying MySQL for over a year. Finally I've decided to start off small by converting the forum's account system to a MySQL database (and convert the rest later after I'm...
0
2004
by: Dimitris Katsikas | last post by:
Hi everybody, I am trying to find a way to export automatically an entire database schema into an .xsd A graphical way is to drag & drop the tables from Server Connection into an empty .xsd file. My problem is that the xsd does not include info concerning the relationships between database tables. Is there an automated way to retrieve programmatically the entire db schema into a single xsd file?
33
2371
by: jacob navia | last post by:
Recently there was a discussion in this group about how to retrieve the file name given a FILE *. The question raised my curiosity, and after some research I have come up with a good implementation. The solution is in the tutorial for lcc-win32 (http://www.cs.virginia.edu/~lcc-win32) page 331.
0
1487
by: D.R. | last post by:
hi, i need to retrieve all indexes and keys from tables and files. right now i'm using SQLStatistics, but it retrieve only the indexes on tables (indexes that appear on the catalog sysindexes). i need to retrieve also the key fields in physical file. 1. how can i retrieve the key field in physical file through ODBC? 2. Is there another AUTOMATIC way retrieving the key field? for example a way to AUTOMATICLY transofrm the key field into...
1
13272
by: ahujasatna | last post by:
Hi all!! i am working on C#, ASP.Net with Sql server2000 and i am facing a problem, my Question is: "How to insert and retrieve images to/from Sqlserver2000 Database" I created a table in database there are only two Columns:
0
1184
by: NETCODE | last post by:
I am developing an add-in. I need to retrieve the path of .msi file, located in under project properties, from the deployment project (setup). I was able retieve all project properties of all projects (ex: output path of the dll) except Deployment project. I am using "project.ConfigurationManager.ActiveConfiguration.Properties" and "Project.Properties" for retrieving all information. But I am stil could not able to retrieve the path...
7
2688
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file name based on the name of the VB6 application. A second choice would be a file name based on the # COM interface assembly. I have tried calling Assembly.GetCallingAssembly() but this fails when I use the VB6 client. Is there a way to get this...
0
9620
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.