Product Documentation

Files device policy

You can add script files to XenMobile that perform certain functions for users, or you can add document files that you want Android device users to be able to access on their devices. When you add the file, you can also specify the directory in which you want the file to be stored on the device. For example, if you want Android users to receive a company document or .pdf file, you can deploy the file to the device and let users know where the file is located.

You can add the following file types with this policy:

  • Text-based files (.xml, .html, .py, and so on)
  • Other files, such as documents, pictures, spreadsheets, or presentations
  • For Windows Mobile and Windows CE only: Script files created with MortScript

To add or configure this policy, go to Configure > Device Policies. For more information, see Device policies.

Android settings

  • File to be imported: Select the file to import by clicking Browse and navigating to the file’s location.
  • File type: Select either File or Script. When you select Script, Execute immediately appears. Select whether the script is executed as soon as the file is uploaded. The default is Off.
  • Replace macro expressions: Select whether to replace macro token names in a script with a device or user property. The default is Off.
  • Destination folder: In the list, select the location in which to store the uploaded file or click Add new to choose an unlisted file location. In addition, you can use the macros %XenMobile Folder%\ or %Flash Storage%\ as the start of a path identifier.
  • Destination file name: Optionally, type a different name for the file if it must be changed before being deployed on a device.
  • Copy file only if different: In the list, select whether to copy the file if it is different from the existing file. The default is to copy the file only if it is different.

Windows Mobile/CE settings

  • File to be imported: Select the file to import by clicking Browse and navigating to the file’s location.
  • File type: Select either File or Script. When you select Script, Execute immediately appears. Select whether the script is executed as soon as the file is uploaded. The default is Off.
  • Replace macro expressions: Select whether to replace macro token names in a script with a device or user property. The default is Off.
  • Destination folder: In the list, select the location in which to store the uploaded file or click Add new to choose an unlisted file location. In addition, you can use any of the following macros as the start of a path identifier:
    • %Flash Storage%\
    • %XenMobile Folder%\
    • %Program Files%\
    • %My Documents%\
    • %Windows%\
  • Destination file name: Optionally, type a different name for the file if it must be changed before being deployed on a device.
  • Copy file only if different: In the list, select whether to copy the file if it is different from the existing file. The default is to copy the file only if it is different.
  • Read only file: Select whether the file is to be read-only. The default is Off.
  • Hidden file: Select whether the file is not to be shown in the file list. The default is Off.

Files device policy