Jumat, 06 Februari 2009

copy files created bewtween 05/01/2008 and 06/03/2008


I have a folder C:\myfiles\netfiles\ that has many sub folders and it has many files.I want to copy all the .zip files created between 05/01/2008 and 06/03/2008 and copy then to C:\neededfiles\. Can some please point me in the right direction as to how to accomplish this.i want make small vb.net program to this.Your help is appreciated.
thanks



Qik3Coder (Programmer) 30 Jun 08 19:31
So, you are going to want to look at working with the directory object, as well as files.

What you want is really basic.net code

Psuedo code:
For each oFile as File in myDir.Files
if oFile.CreateDate > "05/01/08" and oFile.CreateDate < "06/0108" then
'copy file to
'oFile.Save(myNewLocation)
end if
Next


Related :
Trik wood work tool

Using radio button vb2008

Valentineday

vb2008 with control

vb2008 with control properties

vb2008 with oriented programming

VB.NET Solution files

VB.NET Code myclass

Virus protection

VisualStudio aGood Partnership

Windows explorer vb2005

Writing first vb2008

Writing the Code vb2008

Explorer in vb2008

SQLserver2005 security