Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 22nd, 2007, 06:22 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default Back Up Program

Hello everyone and thanks for your help in advance. I am in need of writing some type of back program (I think) that can monitor selected folders and look for either new files or changes. When a new file is detected or a change made, the program would copy the affected file to a remote folder on a network server. I have not run across any commercial programs that seem to fit the bill, however, I am open to suggestions. I've got to believe someone has run across this type of need previously and am wondering if someone can point me to some code snippets to piece this thing together. I've Googled it do death without any real success and am surprised its not readily available. Any help on this topic would be greatly appreciated. Thanks.

 
Old January 23rd, 2007, 12:52 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

Actually, this can be achieved little bit easily with .net using "FileSystemWatcher". It monitors the files, created, edited, deleted, and using System.net (I am not sure, here) or "wininet.dll" for uploading/downloading files to the remote server's folder, can be done, easily.

I have done similar kind of thing (but two different projects, 1. for watching file system (.net), 2. transferring files to remote server (vb6.0)) and both can be merged by logical approach.

For transferring files check this link:
http://p2p.wrox.com/topic.asp?TOPIC_ID=54850

and for FileSystemWatcher, you can do it in few steps and few lines of code in vs.net (hardly takes 1 hour or less)

Give a try.

Hope this helps.

With Regards,
Raghavendra Mudugal




Similar Threads
Thread Thread Starter Forum Replies Last Post
Going back ... possible? asearle XSLT 2 January 8th, 2007 06:24 AM
I'm back mehdi62b C# 10 August 14th, 2006 04:53 PM
Setup Project: Program not added in Start>Program arif_1947 VS.NET 2002/2003 2 March 31st, 2005 06:40 AM
Start a program inside another program Silje Classic ASP Professional 1 November 16th, 2004 02:08 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.