473,387 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

download list of files

Hello all,

I am a desktop programmer getting my feet wet on the web. I am trying to
build a .net website that will keep a set of local files synchronized with
a master set on the web.

Using a cookie I can keep track of when the user last synced and build a
file list in my asp.net code that displays which files need downloading.

Next I want to put a button on the page that will download all of the files
sequentially and put them in the appropriate local directories. I do NOT
want a save dialog opening for each file, as there may be dozens of files
at a time. The first time a user connects there could be 500 files!

Can this be done using javascript alone, or do I need to create some sort
of ActiveX object?

Thanks for any advice and direction...
Marc Pelletier
Jul 23 '05 #1
1 1983
Marc Pelletier wrote:
Hello all,

I am a desktop programmer getting my feet wet on the web. I am trying to
build a .net website that will keep a set of local files synchronized with
a master set on the web.

Using a cookie I can keep track of when the user last synced and build a
file list in my asp.net code that displays which files need downloading.
Yes, you can but it will be very unreliable. How do you deal with
situations where the user deletes their cookie file? How do you
guarantee that because the user 'synced' at a particular time that
they actually downloaded and installed the files, or that the files
are still on their system?

Next I want to put a button on the page that will download all of the files
sequentially and put them in the appropriate local directories. I do NOT
want a save dialog opening for each file, as there may be dozens of files
at a time. The first time a user connects there could be 500 files!
You have no control over where the user puts the files, or whether
the file 'Save As' dialogue appears. You could use a self-extracting
archive that knows where to put the files, but that would likely be
platform-specific and so may suit an intranet but certainly not a
publicly accessible web site.
Can this be done using javascript alone,
No.
or do I need to create some sort
of ActiveX object?
You need something, it need not be ActiveX. This situation is
usually handled by the user downloading an installer that checks
their system, connects to the server and downloads what it thinks
are the required files, then puts them where they need to be.

There are ftp clients that do this sort of stuff, but the security
implications are horrendous.

Thanks for any advice and direction...
Marc Pelletier

--
Rob
Jul 23 '05 #2

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

Similar topics

13
by: dan roberts | last post by:
Folks, This is my first Python project so please bear with me. I need to download data from Yahoo Finance in CSV format. The symbols are provided in a text file, and the project details are...
0
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
0
by: Anne Snow | last post by:
7qs ----bSCMEc0pLIbJxmV9 Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px;...
3
by: Skwish | last post by:
Hi, I would like to download all the files from a folder (of various types i.e. ..txt, .dll, .dat, etc.). I tried Dim MyDir As IO.Directory Dim path As String = Me.MapPath(".") & "\Data" Dim...
2
by: Ivo Tcholakov | last post by:
Hello, I created an application where the users need to download files. I have the list of the files stored in a database and I present the list to download in a Datagrid. Here comes my question....
2
by: RJN | last post by:
Hi I need help in allowing the user to download multiple files at once. User will be displayed a grid on the browser which will list the various files available on the web server for download...
1
by: david | last post by:
Given a path of directory, how to select and download a list of files in the directory? or simply download all files in the directory continuosly? Thanks David
1
by: rdemyan via AccessMonster.com | last post by:
My App has 10 or so tables that we provide that contains proprietary data. This data will need to be updated once or twice a year. I would like some comments, suggestions on my proposed strategy...
16
by: matt | last post by:
I have used some free code for listing files for download, but I want to send an email to the administrator when the file has been downloaded. I have got some code in here that does it, but it will...
1
by: Juerg Beck | last post by:
Hello all I'm completely new to php but a complete newbie when it comes to unix. So please don't laugh about my problem. I have programmed a nice password check with php, javascript and a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.