Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > File Checking using Internet


Reply
 
Thread Tools Display Modes
  #1  
Old 12-22-2003, 06:00 AM
NeoPuma NeoPuma is offline
Centurion
 
Join Date: Nov 2003
Location: South Wales
Posts: 96
Default File Checking using Internet


Whats the code to check a file on the internet with the file you got, and If their different, it downloads the new 1 from the net (Then notify the user). other wise does nothing.

Like if I got a file:
C:\My Documents\file.ini which read:
[Setup]
1=blah

and the one on the net read:
[Setup]
1=bleh

It would download the one from net. It would download to the folder of the application and over write the file (No confirming). Also could it disable you from using the application untill the file is 100% Downloaded.

Thanks

-Neo
Reply With Quote
  #2  
Old 12-22-2003, 06:05 AM
Icek Icek is offline
Restricted
 
Join Date: Jun 2003
Location: Warsaw, Poland
Posts: 183
Default

The usual way of handling such a problem (not very simple) is to pack components on the website in so called cabinet files, which have their version. If it's older otr the same, the components are not installed on the system. Maybe this link will help:
http://msdn.microsoft.com/library/de.../packaging.asp
Reply With Quote
  #3  
Old 12-22-2003, 06:07 AM
Icek Icek is offline
Restricted
 
Join Date: Jun 2003
Location: Warsaw, Poland
Posts: 183
Default

Or you may download the file and use the file compare executable to verify if the files are different, i.e.:
Code:
shell "fc.exe file1.ini file2.ini >> temp.txt"
The temp.txt file will contain the result of a comparison.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File I/O GavinO Tutors' Corner 5 04-17-2013 01:18 PM
Installation Problem - PLs help urgenlty dpdsouza Installation / Documentation 4 12-02-2004 07:09 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->