View Single Post
 
Old March 18th, 2006, 12:28 PM
phenom phenom is offline
Authorized User
 
Join Date: Feb 2006
Location: Dubai, UAE, United Arab Emirates.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Thearon
 Does the source destination exist? What does your code that performs the actual copy look like?
Thearon
Dear Thearon,

thanks for the reply, my code look like the one below:

Dim dat As Date
        Dim Mm As String = 0
        dat = m_DataDB.Rows(1)("sdat")
        Select Case dat.Month
            Case 1
                Mm = "Jan" & Microsoft.VisualBasic.Right(dat.Year, 2)
            Case 2
                Mm = "Feb" & Microsoft.VisualBasic.Right(dat.Year, 2)
            Case 3
                Mm = "Mar" & Microsoft.VisualBasic.Right(dat.Year, 2)
         End Select
        Dim source As String = lblImgPath.Text & m_DataDB.Rows(1)("country") & "\" & Mm & "\" & m_DataDB.Rows(1)("filename")
        Dim des As String = lblDesPath.Text

        'Check the Destination & Source
        MessageBox.Show(des)
        MessageBox.Show(source)

        Try
            System.IO.File.Copy(source, des, True)
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try

both Dest and Soure exist...

thanks & regards

PHENOM


>>>PHENOM<<<