Hour Property

This property specifies the hour when the scheduled project is run.

Syntax

ReplicationSchedule.Hour

Parameters

ReplicationSchedule

The ReplicationSchedule object.

Remarks

Example

The following example runs project Test every day at 5:00 A.M.

Option Explicit 
On Error Resume Next 

const OPEN_EXISTING_PROJECT   = 2
const CRS_SCHEDULE_DAY_DAILY  = 255

dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")

dim ReplProject
set ReplProject = ReplServer.OpenProject("Test", OPEN_EXISTING_PROJECT)

dim RepSched
set RepSched = ReplProject.AddSchedule
RepSched.Days = CRS_SCHEDULE_DAY_DAILY
RepSched.Hour = "5"

'Release objects
set Sched       = Nothing
set ReplProject = Nothing
set ReplServer  = Nothing

See Also

Minute, ReplicationProject.AddSchedule, ReplicationProject.EnumSchedules


© 1997-1998 Microsoft Corporation. All rights reserved.