Create report folder
Syntax
Publish -crf -r ParentReportFolderPath [-n UserOrGroupName] -t eng Name fra Nom deu Name esn Nombre [-msg LanguageCode]
Examples
publish -crf -r "" -n administrator -t eng Folder1 fra Dossier1 deu Ordner1 esn Carpeta1 -msg fra
- Creates a folder called Folder1 in English, Dossier1 in French, etc. It is created in the root of Public reports.
publish -crf -r Folder1 -n administrator -t eng Folder2 fra Dossier2 deu Ordner2 esn Carpeta2 -msg fra
- This creates a second folder, called Folder2, under Folder1. The naming scheme is the same, but with 2 instead of 1.
Command reference
Name | Required | Notes |
publish | Yes | The name of the executable. It is located in the \bin directory of a WDS |
-crf | Yes | Creates a new folder in WDS. |
-r ParentReportFolderPath | No | Specifies the path to the folder to be created. If this option is not present, the folder will be created at the root of the specified user or group (if the -n option is used), or else in the public reports folder. If the path contains any spaces, enclose it in double quotes ("). The path should not include the report name or the name of the root folder. All folders in the path should be separated with forward slashes (/). For example, -r Report and folder names should not contain slashes. The folder must exist. It will not be created. If the folder does not exist, the command will fail with a message that the specified folder was not found. The report folder name is language dependent. If more than one folder exists with the same name, whether or not they are in the same language, the first one that is found by the search algorithm will be used. |
-n UserOrGroupName | No | Specifies the name of the user or group which will own the new folder. If this option is not present, the owner of the folder will be administrator and the folder will be created in Public reports. (This is also the case if "administrator" is specified for UserOrGroupName.) |
-t | Yes | The folder's title for each language supported by the site. You may only need to specify eng, or eng and fra, etc. |
-msg LanguageCode | No | Specifies the language in which publishing messages will appear. For example, -msg fra specifies that feedback messages in the command prompt window, such as "Report successfully added" or "Path not found," will appear in French. If not present, messages appear in the language that is specified in the operating system's "Regional and language options." (If no valid language information is found, defaults to English.) Note that errors which occur while parsing a command will appear in English. This is because at that time in the publishing process, the language resource files have not yet been initialized. |