|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Automated File CopyingHI All,
I am trying to make a small program that will copy the contents of one folder into another folder automatically. This is for backup and i want to just be able to run the program and have all the files be copied. Didn't know if there was some API or some easy lines of code that anyone knew of. Thanks in advance Reply Reply with quote <andrew.var***@gmail.com> schrieb:
> I am trying to make a small program that will copy the contents of one Check out the classes in the 'System.IO' namespace, namely 'Directory' and > folder into another folder automatically. This is for backup and i > want to just be able to run the program and have all the files be > copied. Didn't know if there was some API or some easy lines of code > that anyone knew of. 'File'. In addition you may want to take a look at 'My.Computer.FileSystem.CopyDirectory'. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> andrew.var***@gmail.com wrote:
> HI All, since you mentioned "backup" and "automatically," i'm guessing you> > I am trying to make a small program that will copy the contents of one > folder into another folder automatically. This is for backup and i > want to just be able to run the program and have all the files be > copied. might want this to backup a file whenever something is added to the folder, or something like that. if that's the case, check out the stuff mentioned by HW above, but more specifically, see FileSystemWatcher, which is in System.IO. Tutorial: http://www.codeproject.com/dotnet/folderwatcher.asp I wrote a program like this, except that it doesn't have the FileWatcher
stuff in it. You can have it if you want. Steve <andrew.var***@gmail.com> wrote in message Show quoteHide quote news:1156193769.659770.91240@i42g2000cwa.googlegroups.com... > HI All, > > I am trying to make a small program that will copy the contents of one > folder into another folder automatically. This is for backup and i > want to just be able to run the program and have all the files be > copied. Didn't know if there was some API or some easy lines of code > that anyone knew of. > > > Thanks in advance > > > Reply Reply with quote > Steve,
That would be great if you would send that to me. I just want to see how you coded it. Many thanks, Andrew Steve Long wrote: Show quoteHide quote > I wrote a program like this, except that it doesn't have the FileWatcher > stuff in it. You can have it if you want. > > Steve > > <andrew.var***@gmail.com> wrote in message > news:1156193769.659770.91240@i42g2000cwa.googlegroups.com... > > HI All, > > > > I am trying to make a small program that will copy the contents of one > > folder into another folder automatically. This is for backup and i > > want to just be able to run the program and have all the files be > > copied. Didn't know if there was some API or some easy lines of code > > that anyone knew of. > > > > > > Thanks in advance > > > > > > Reply Reply with quote > > Steve,
That would be great if you would send that to me. I just want to see how you coded it. Many thanks, Andrew Steve Long wrote: Show quoteHide quote > I wrote a program like this, except that it doesn't have the FileWatcher > stuff in it. You can have it if you want. > > Steve > > <andrew.var***@gmail.com> wrote in message > news:1156193769.659770.91240@i42g2000cwa.googlegroups.com... > > HI All, > > > > I am trying to make a small program that will copy the contents of one > > folder into another folder automatically. This is for backup and i > > want to just be able to run the program and have all the files be > > copied. Didn't know if there was some API or some easy lines of code > > that anyone knew of. > > > > > > Thanks in advance > > > > > > Reply Reply with quote > > Steve,
That would be great if you would send that to me. I just want to see how you coded it. Many thanks, Andrew Steve Long wrote: Show quoteHide quote > I wrote a program like this, except that it doesn't have the FileWatcher > stuff in it. You can have it if you want. > > Steve > > <andrew.var***@gmail.com> wrote in message > news:1156193769.659770.91240@i42g2000cwa.googlegroups.com... > > HI All, > > > > I am trying to make a small program that will copy the contents of one > > folder into another folder automatically. This is for backup and i > > want to just be able to run the program and have all the files be > > copied. Didn't know if there was some API or some easy lines of code > > that anyone knew of. > > > > > > Thanks in advance > > > > > > Reply Reply with quote > >
Handling refreshes from browser
Re: SQL query to Excel file windowclosing not firing Multiple Table DataSet Change box color on checkbox control how to display a label only a while? How to check base class type of 'open' generic class? (inheritance check) Re: SQL query to Excel file Has Dataset Changed? Re: MS Access Reports and VB.NET Program |
|||||||||||||||||||||||