Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Download of CHM files only on request

1 view
Skip to first unread message

Maria

unread,
Jun 29, 2009, 9:06:01 AM6/29/09
to

I have a client-server architecture and my chm files will be initially
avaliable only on the server machine. When the client, clicks on a link only
then the .chm file should be downloaded on the client's machine and from then
on picked up from the client machine. i.e. any subsequent request should not
hit the server for the same chm file.
How do i achieve this ?
Is there any help / sample code avaliable for the same

Thanks in advance

Maria

Rob Chandler [MVP]

unread,
Jun 29, 2009, 10:13:17 PM6/29/09
to
Hi Maria
This will of course depend on the language you are programming in. But be assured
there will be plenty of code examples on the web for downloading a file.
 
So the logic I use....
 
If No_Local_CHM
   If PromptUser_DownloadNow?_YesNo
     Download_File_From_Server;
else begin
   If User_Option:TimeToCheckForUpdate
   begin
     Get_Server_CHM_Info;  //download version INI
     If NewerFileOnServer
       If PromptUser_DownloadNow?_YesNo
         Download_File_From_Server;
   end
end;
 
I often have a small second file (an INI) on the server and this
contains my version info (since CHMs don't have version info).
 
And I have a User option of how often to check for updates.
You may want to hardwire this to every 7 days, or once a day.
But you don't really want them checking every time they open
the application.
 
Another User Option is a Button to check for updates Now.
 
Cheers
Rob
 

Maria

unread,
Jun 30, 2009, 1:50:01 AM6/30/09
to

Thanks Rob. This is really helpful

I have searched on the web for links/code samples for the same in java, but
am not able to locate the exact links. Probably im missing the exact keywords
to search for.

If you have some pointers/links which you can direct me to it will be really
helpful.

Cheers
Maria

Rob Chandler [MVP]

unread,
Jul 10, 2009, 11:47:36 PM7/10/09
to
Hi Maria
Not a Java programmer I'm sorry.

In Google try searching for "Java code download file"

Good luck
Rob


"Maria" <Ma...@discussions.microsoft.com> wrote in message

news:37F55832-7E8D-41F6...@microsoft.com...

0 new messages