Hi all,

I need to backup several .wav files from my company's server to dvds
(I think more than one) depending on their creation date.

I've created a new windows application form, giving the user the
possibility to choose the source folder and the range of date.

After that, I select among the files in the source folder
-------
v_files = System.IO.Directory.GetFiles(dir)

For Each v_file In v_files

    If (IO.File.GetCreationTime(v_file) > begindate And _
        IO.File.GetCreationTime(v_file) < enddate) Then
-------

and after that I check the total size
-------
        totalsize= totalsize + GetFileSize(d_file)

Private Function GetFileSize(ByVal MyFilePath As String) As Long

  Dim MyFile As New FileInfo(MyFilePath)
  Dim FileSize As Long = MyFile.Length
  Return FileSize

End Function
--------

if totalsize > dvdsize (that is = 4500000000)
msgbox ("error") and I let the user choose a smaller range of dates.

now I should burn the dvd...
any idea-help ?

thanks in advance

Reply via email to