Sending mdb to Internet only if it has been changed?

  • Thread starter Thread starter Drygast
  • Start date Start date
D

Drygast

I have a form that updates an accessdatabase, when I close the form I have
put a question wheter to send the database to the intenet or not. Is it
possible to automatically check if the database has been altered and if so
send the database?

Regards
/Drygast
 
* "Drygast said:
I have a form that updates an accessdatabase, when I close the form I have
put a question wheter to send the database to the intenet or not. Is it
possible to automatically check if the database has been altered and if so
send the database?

You can check when the file was written for the last time using
'File.LastWriteTime'.
 
Hi drygast,
I have a form that updates an accessdatabase, when I close the form I have
put a question wheter to send the database to the intenet or not. Is it
possible to automatically check if the database has been altered and if so
send the database?
I dont, know if I can help you, but my first question was,
what is the direction of the sending
Client-> Server
Server-> Client

And who manages this proces, the Internet is big you know, and I cannot
imaging you want to upload it on my computer?

Now there are in my eyes a lot of possibilities in your question.

Cor
 
My misstake Cor, I have no intention of uploading the file to your computer
;-)

I have a client where the mdb-file is altered localy, when the file is
altered it is sent to at
server (with a domain name under my control), on this website ppl can search
the mdb file (read only).
The database is still very small and I have no use for SQL-server (yet) as
the serviceprovider I'm using charge to
much.

Hope this helps a little.

Regards
/Drygast
 
Hi Drygast,
I never did this, but I would look for the Webclient class, there are some
upload methods (I use the download). The Webclient download is one of the
most simple method's there are, so I think the upload, cannot be that
difficult.
Cor
 
Cor, I think you misunderstand me:
The question is not how to send the mdb-file but how to check if the file
has been altered then send it.
The way I deal with it now is to have a question popup every time I close
the form asking if I would like to send
the file (if nothing has been changed there's no need to send it). I should
be sent only if something has been
changed in the file, and it should do so automatically without any
popup-window.

Regards
/Drygast
 
Hi Drygast,
That must be quiet easy, there is a filesystemwatcher class, I think that
does what you ask.

This i copied from that class

There are several types of changes you can watch for in a directory or file.
For example, you can watch for changes in Attributes, the LastWrite date and
time, or the Size of files or directories. This is done by setting the
FileSystemWatcher.NotifyFilter property to one of the NotifyFilters values.
For more information on the type of changes you can watch, see
NotifyFilters.

I hope we finally got it?

Cor
 
Back
Top