Connecting Tech Pros Worldwide Help | Site Map

javascript that updates files from ftp server to local drive

  #1  
Old November 17th, 2006, 11:35 PM
elmer.piano@gmail.com
Guest
 
Posts: n/a
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.

  #2  
Old November 18th, 2006, 12:05 AM
pcx99
Guest
 
Posts: n/a

re: javascript that updates files from ftp server to local drive


elmer.piano@gmail.com wrote:
Quote:
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.



--
---------------------------------------------------------------------------
http://www.hunlock.com -- Permanently under construction (And proud of it!)
$FA
  #3  
Old November 18th, 2006, 12:15 AM
Dag Sunde
Guest
 
Posts: n/a

re: javascript that updates files from ftp server to local drive


pcx99 wrote:
Quote:
elmer.piano@gmail.com wrote:
Quote:
>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.
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.

--
Dag.


  #4  
Old November 18th, 2006, 12:15 PM
Daz
Guest
 
Posts: n/a

re: javascript that updates files from ftp server to local drive



elmer.piano@gmail.com wrote:
Quote:
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

  #5  
Old November 18th, 2006, 12:15 PM
Daz
Guest
 
Posts: n/a

re: javascript that updates files from ftp server to local drive



Daz wrote:
Quote:
elmer.piano@gmail.com wrote:
>
Quote:
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
Oh, and another alternative, which again, stinks of Microsoft, but
'might' not limit you to IE, would be to use a VBScript. I am not sure
if you need to use asp however, and if it would even work with browser
other than IE.

Closed Thread