javascript that updates files from ftp server to local drive

E

elmer.piano

We have a directory of files on our ftp server. Is there a javacript to
make a connection to the ftp server and compare files on a local drive
and on the server? Files that have been changed or added need to be
copied across from the ftp server to the local drive.

Please help! Thanks.
 
P

pcx99

We have a directory of files on our ftp server. Is there a javacript to
make a connection to the ftp server and compare files on a local drive
and on the server? Files that have been changed or added need to be
copied across from the ftp server to the local drive.

Please help! Thanks.

While you could write a script to check and process the files on the
server side, javascript and java have no access to the files on the
client's computer. You might be able to get away with it with an
activeX object but I rather doubt it.

This is actually a good thing. If javascript could reach outside the
browser to your hard drive the web would come crashing down because
every third site would be rooting around the contents of your hard-drive.
 
D

Dag Sunde

pcx99 said:
While you could write a script to check and process the files on the
server side, javascript and java have no access to the files on the
client's computer. You might be able to get away with it with an
activeX object but I rather doubt it.

Doing this is actually very easy with a *signed* Java applet or
ActiveX control embedded in your page.

That said, the ActiveX alternative is a bad solution, since it will
lock you in to an IE/Windows only scenario.

There is absolutely _no way_ to do this in JavaScript.
 
D

Daz

We have a directory of files on our ftp server. Is there a javacript to
make a connection to the ftp server and compare files on a local drive
and on the server? Files that have been changed or added need to be
copied across from the ftp server to the local drive.

Please help! Thanks.

This will do what you want, but be warned, I do NOT recommend it as you
will be locked into IE, and it STINKS of Microsoft...

http://www.codeproject.com/jscript/search_in_files.asp
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top