Hey Group,
Hope your all well?
I have a File (Access Database) on my Network (Mapped Drive), and also a
copy on my Local Machine. When my App Starts I would like it to check to
make sure the Local Machine has the same file as on the network, and if not
throw a question asking if i would like to copy the new network version on
to my local machine.
I guess I would check the file size, data and time last modifyed, i just
don`t know how. I`ve looked on the net but carn`t see much.
Many Thanks for any help in advance.
Regards
MCN 6 1339
Hi,
Take a look at the fileinfo class. http://msdn.microsoft.com/library/de...classtopic.asp http://msdn.microsoft.com/library/de...mberstopic.asp
Ken
----------------------
"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:bC********************@karoo.co.uk... Hey Group,
Hope your all well?
I have a File (Access Database) on my Network (Mapped Drive), and also a copy on my Local Machine. When my App Starts I would like it to check to make sure the Local Machine has the same file as on the network, and if not throw a question asking if i would like to copy the new network version on to my local machine.
I guess I would check the file size, data and time last modifyed, i just don`t know how. I`ve looked on the net but carn`t see much.
Many Thanks for any help in advance.
Regards MCN
MadCrazyNewbie wrote: I have a File (Access Database) on my Network (Mapped Drive), and also a copy on my Local Machine. When my App Starts I would like it to check to make sure the Local Machine has the same file as on the network, and if not throw a question asking if i would like to copy the new network version on to my local machine.
I guess I would check the file size, data and time last modifyed, i just don`t know how. I`ve looked on the net but carn`t see much.
Hi MadCrazyNewbie,
one solution might be to calculate hashes over the two files and compare
the results.
A good start how to implement this can be found here: http://vbaccelerator.com/home/NET/Co...32/article.asp
Cheers
Arne Janning
Hi Arne, one solution might be to calculate hashes over the two files and compare the results.
A good start how to implement this can be found here: http://vbaccelerator.com/home/NET/Co...32/article.asp
Why would he do that, I write that because most regulars know Simon.
He is fast afraid that he does something not well.
Simon needs to know if the latest file on his client is the same as on the
server and when not he replaces the local one by the server one.
There is no reason to know what is the difference, he even can replace it
withouth asking ( I do not see why he does not do that, however that is his
decission). And therefore in my opinion the answer from Ken fits.
(More written for Simon than for you I see now)
:-)
Cor
Hey All,
Thanks for your replys.
Cor,
The reason i would like it to ask is some of us will be using the prog over
a Mobile phone using GPRS or over a 56k dial up when were out and about, and
all ready my DB is about 8megs. It would get rather slow coping it over.
Many thanks again all
Si
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:eU*************@TK2MSFTNGP11.phx.gbl... Hi Arne,
one solution might be to calculate hashes over the two files and compare the results.
A good start how to implement this can be found here: http://vbaccelerator.com/home/NET/Co...32/article.asp Why would he do that, I write that because most regulars know Simon. He is fast afraid that he does something not well.
Simon needs to know if the latest file on his client is the same as on the server and when not he replaces the local one by the server one.
There is no reason to know what is the difference, he even can replace it withouth asking ( I do not see why he does not do that, however that is
his decission). And therefore in my opinion the answer from Ken fits.
(More written for Simon than for you I see now)
:-)
Cor
Hi Simon, The reason i would like it to ask is some of us will be using the prog
over a Mobile phone using GPRS or over a 56k dial up when were out and about,
and all ready my DB is about 8megs. It would get rather slow coping it over.
I understand that now however why not use as well add an zipp procedure.
You should always be possible to do that with the process.start and the
winzip.exe for commandline. (there are more I saw) http://www.winzip.com/prodpagecl.htm
However I think there are even better methods, I am almost sure that
Herfried has a link for you.
Cor
* "Cor Ligthert" <no**********@planet.nl> scripsit: The reason i would like it to ask is some of us will be using the prog over a Mobile phone using GPRS or over a 56k dial up when were out and about, and all ready my DB is about 8megs. It would get rather slow coping it over. I understand that now however why not use as well add an zipp procedure.
You should always be possible to do that with the process.start and the winzip.exe for commandline. (there are more I saw)
http://www.winzip.com/prodpagecl.htm
However I think there are even better methods, I am almost sure that Herfried has a link for you.
About zipping?
<URL:http://www.icsharpcode.net/OpenSource/SharpZipLib/>
The VB.NET Resource Kit contains zipping functionality too:
<URL:http://msdn.microsoft.com/vbasic/vbrkit/>
It contains ComponentOne Zip for .NET:
<URL:http://www.componentone.com/products.aspx?ProductCode=1&ProductID=26>
Using J#'s zip functionality:
<URL:http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/print.asp>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: matt |
last post by:
I have compiled some code, some written by me, some compiled from
various sources online, and basically i've got a very simple flat file
photo gallery. An upload form, to upload the photos and give...
|
by: Dave Smithz |
last post by:
Hi There,
I have a PHP script that sends an email with attachment and works great when
provided the path to the file to send.
However this file needs to be on the same server as the script.
...
|
by: Joseph |
last post by:
Hi,
I'm having bit of questions on recursive pointer. I have following
code that supports upto 8K files but when i do a file like 12K i get a
segment fault. I Know it is in this line of code. ...
|
by: StGo |
last post by:
How can i read/write file's custom attributs(like subject,author...) in
C#???
Thanks :))
|
by: Lokkju |
last post by:
I am pretty much lost here - I am trying to create a managed c++
wrapper for this dll, so that I can use it from c#/vb.net, however, it
does not conform to any standard style of coding I have seen....
|
by: Sky Sigal |
last post by:
I have created an IHttpHandler that waits for uploads as attachments for a
webmail interface, and saves it to a directory that is defined in
config.xml.
My question is the following:
assuming...
|
by: Roy |
last post by:
Hi,
I have a problem that I have been working with for a while.
I need to be able from server side (asp.net) to detect that the file i'm
streaming down to the client is saved...
|
by: Shapper |
last post by:
Hello,
I created a script to upload a file.
To determine the file type I am using userPostedFile.ContentType.
For example, for a png image I get "image/png".
My questions are:
1. Where can...
|
by: troutbum |
last post by:
I am experiencing problems when one user has a document open through a
share pointing to the web site. I use the dsolefile to read the
contents of a particular directory and then display them in a...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |