I have a file in my server
Then a user using his desktop to compare the file in his own desktop with the one in the server.
If it is not the newest one according to the date for the file in his desktop compare to the server one, I want to be able to overwrite the file in his desktop by downloading the newer file from the server.
How can I do that?
Thanks
Last edited by snowei1; Mar 12th, 2004 at 03:16 AM.
MsgBox "The newest file is file number: " & intTemp
End Sub
Please rate this post if it was useful for you!
Please try to search before creating a new post,
Please format code using [ code ][ /code ], and
Post sample code, error details & problem details
That's the lastbit - checking of the files, this will copy the file:
VB Code:
FileCopy "\\server\file.ext", "C:\file.ext"
Please rate this post if it was useful for you!
Please try to search before creating a new post,
Please format code using [ code ][ /code ], and
Post sample code, error details & problem details
My server file need a URL like "http://servername/file.txt" to get it out. How to know whether the file in the server is the newest or not.
And when I put the CompareFiles function directly copy in to my program it say no such function.What to do?
Last edited by snowei1; Mar 12th, 2004 at 08:05 PM.
In vb, right click on the "project explorer" window on the right of the screen (if you can't see this window - which lists all of the forms & modules within your project, then access this via the view menu) & choose the Add > Add file options.
Pick up the module contained in the above zip file to add this into your project...
Please rate this post if it was useful for you!
Please try to search before creating a new post,
Please format code using [ code ][ /code ], and
Post sample code, error details & problem details