Using the Create New Appointment Sample Application
Topic Last Modified: 2006-06-11
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 2007 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.
Example
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!"