Sei sulla pagina 1di 1

' This Script will Copy Data from Source to Destination on the Path Specified.

' Copy right Visualsoft Development 2002


' Sajid Fiaz

Dim SourceData, DestData,ToDayDateStr

'******************* Get System Date for Date Type Copying ***************


todayDatestr = ""
If Month(Date) < 10 Then
todayDatestr = "0" & CStr(Month(Date)) & "-"
Else
todayDatestr = CStr(Month(Date)) & "-"
End If
If Day(Date) < 10 Then
todayDatestr = todayDatestr & "0" & CStr(Day(Date)) & "-"
Else
todayDatestr = todayDatestr & CStr(Day(Date)) & "-"
End If
todayDatestr = todayDatestr & CStr(Year(Date))
'************************* END OF Custom Date ****************************

'******************************** Source ***********************************


' Specify source Path
SourceData = "F:\bea\wlserver6.0\config\mydomain\applications\DefaultWeb
App_myserver\images"
'******************************** Destination ********************************
' if you want to override Exsisting Data, Please remove ' from the line below
DestData = "G:\Backup pktoday Tenders\Images"

'******************************** Destination BY DAte *************************


*******
' If you want to Copy daily Using Data Format Please remove ' from the line belo
w
'DestData = "G:\backup.statesman.com.pk\" & ToDayDateStr
'*************************************************************************

'********* Please Donot make any change ***************8


Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFolder SourceData, DestData, True

Potrebbero piacerti anche