S
Skwish
Hi,
I have been using
Dim filename As String
Dim filepath As String
filename = "Steve.txt"
filepath = Server.MapPath(".") & "\" & filename
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=" &
filename )
Response.WriteFile(filepath)
Response.End()
To download a single file from server to client. However, I would like to
move an entire folder of files and I have been unsuccessful. If I use the
above inside a loop for each file in the folder, I end up with a single file
on the client (all the files put into one with the first file's name).
Can someone help please? Also, what is the Response.AddFileDependencies
method do? There is no good documentation and it would seem that it might
be useful in my problem.
Thanks,
Stephen
I have been using
Dim filename As String
Dim filepath As String
filename = "Steve.txt"
filepath = Server.MapPath(".") & "\" & filename
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=" &
filename )
Response.WriteFile(filepath)
Response.End()
To download a single file from server to client. However, I would like to
move an entire folder of files and I have been unsuccessful. If I use the
above inside a loop for each file in the folder, I end up with a single file
on the client (all the files put into one with the first file's name).
Can someone help please? Also, what is the Response.AddFileDependencies
method do? There is no good documentation and it would seem that it might
be useful in my problem.
Thanks,
Stephen