![]() |
Copying files
Ok Suppose i have two directories
dim source as string = "C:\MyFiles" dim dest as string = "C:\Mybackup" now if the MyFiles folder contains 5 documents: file1.doc file2.doc file3.doc file4.doc file5.doc I want to click a button, have it check to see if the dest exsists, if it does and there are files in it, get those files and copy them to the backup folder. So far i have: :
dim source as string = "C:\MyFiles" |
:
xcopy C:\MyFiles C:\MyBackup /E |
MSDN has a example look under CopyFile method
|
| All times are GMT -5. The time now is 12:44 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC