Using the Create New Appointment Sample Application

Using the Create New Appointment Sample Application

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Create New Appointment sample application consists of a Microsoft® Visual C++® executable file that can be run from the command line. The following table contains the command-line arguments that are used and their descriptions.

Argument Description
user The e-mail address of the user.
subject The subject of the appointment.
location The location of the meeting.
beginningTime The beginning time of the appointment in 24-hour time. Ex: 11/05/01 14:00:00.
endingTime The ending time of the appointment in 24-hour time. Ex: 11/05/01 14:30:00.
textBody The text body of the appointment.

To create a new appointment

To create a new appointment, open a command window and navigate to the directory where the CreateAppointment.exe file is located. Type "CreateAppointment" followed by the user, subject, location, beginningTime, endingTime, and textBody arguments, and then press ENTER. This sample application must be run on a computer with Microsoft Exchange Server 2003 installed.

The following code creates a new appointment in the Calendaring folder of testuser@fourthcoffee.com with a subject of "Coffee Break" and a text body of "Time for a coffee break!" The appointment will be located at the first floor kitchen and will run from 2:00-2:30 PM on November 5, 2001.

C:\>CreateAppointment testuser@fourthcoffee.com "Coffee Break" "1st Floor Kitchen"
"11/05/01 14:00:00" "11/05/01 14:30:00" "Time for a coffee break!"

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.