PATHCHAR
Function
Changes the default path separator command when specifying objects using a path name. By default this character is a colon (:) but it can be changed to another character (for example, /) to specify targets containing colons. The setting persists until the end of the current script.
Can also be used to add a subject field as part of the path. Any object can contain a name and subject path, however, you will need to specify the path separator.
Syntax
PATHCHAR char
Examples
Calendars often contain numerous events with either the same name or no name at all. In order to work with events you'll need to define a separator for the subject.
To set name separator as a colon and the subject (description) separator as a slash, enter:
PATHCHAR ":" "/"
To remove an item that has no name, but a subject of Company Meeting, enter:
PATHCHAR ":" "/"
REMOVE "calendar:/company meeting"
To remove an item from the Administrator, where the subject is Company Meeting, enter:
PATHCHAR ":" "/"
REMOVE "general conferences:employee lounge:employee calendar:administrator/company meeting"
Related command
Also see the DIR command for an example on how to use the BYINDEX keyword.
|