Configure OneDrive
OneDrive is a Microsoft Cloud service that provides access to all your Personal Communications configuration files from anywhere. It also stores and protects your files and allows you to share them with other users. When a user uses a different account with OneDrive, all the configured files get synced with the OneDrive user account.
User can also configure OneDrive with Personal Communications profile directory, Macro directory and Tool Bar icons directory. For more details, refer to below sections.
Configure Profile Directory with OneDrive
A user can configure profile directory with OneDrive either during Personal Communications installation using %OneDrive% variable or after installation through Preference Utility.
- Set %OneDrive% as profile directory during installation.
- Select all users “Custom Application Data Folder” option and give the
variable path.

- After successful configuration, a user can load all session files from OneDrive.
Registry path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\IBM\Personal Communications\CurrentVersion\Install Summary

- Open the Preference Utility.
- Enter the %OneDrive% variable path under Enter location for
emulator profile files field and click OK.

- After successful configuration, a user can load all session files from OneDrive.
Configure Personal Communications Tool bar icons Directory with OneDrive
- Open the pcswin.ini file.
- Under the [ToolBar] section, set the IconPath to OneDrive path.
Once user configures the above keyword in pcswin.in, the tool bar files (*.bar) use the OneDrive path to load all the custom icons ignoring the local custom tool bar icon file path. The icon files are looked up in “IconPath” location with its name. If the file is not found, the user is informed with a message box and loads the default icon.
Configure Macro Directory with OneDrive
- Open the pcswin.ini file.
- Under the [Macro] section, set the DIR to OneDrive path.

Configure OneDrive Single Sign-On
-
Open the Preference Utility Manager (userpm).
-
Select the OneDrive checkbox.Note:
-
If the user is not signed in to OneDrive, a OneDrive sign-in dialog will appear.
-
If already signed in to OneDrive, the path
%onedrive%is automatically set in the Profile Directory edit box.
-
-
Click the Apply button.Note:
-
This action will store the
%onedrive%path in the registry under the profile directory key. -
A registry key for Onedrive Enabled is also created or updated with the value “T” indicating that OneDrive is enabled.
-
Configure UI Synchronization for Session Files
-
Ensure the Profile Directory path is set to a OneDrive location.
-
Open the Session Manager (pcsfe) dialog box.
-
In the Details tab, a new Status column is visible if session files are loaded from OneDrive.Note:
- If the Profile Directory is not OneDrive, the Status column is hidden.
- You can view the sync status in both Large Icon View
and Small Icon View:
- Synced Sessions: A green indicator appears at the top-left corner of the session icon.
- Not Synced Sessions: The icon remains unchanged (no additional indicator is shown).
- The given %onedrive% variable path will be expanded to full path in
Preferences for a user. The variable path is stored in the
following directory.
Computer\HKEY_CURRENT_USER\SOFTWARE\IBM\PersonalCommunications\CurrentVersion\Preferences\Profile Directory

- All configuration files associated with session files can use the variable path, any change in session will rewrite the session file with full path.
Loading Configuration Files from OneDrive
-
Supported file types include WS, kmp, cmp, mmp, and bar files.
-
This feature is enabled by specifying the %onedrive% environment variable in the session configuration files.
Example: To set a default keyboard file from OneDrive, the following entry is added to the session file:
[Keyboard]
DefaultKeyboard=%onedrive%\TN3270.KMPLoading Bar File Icons from OneDrive
-
When configured, the application ignores the icon path specified within the .bar file.
-
The system instead looks for the corresponding icon file names at the path mentioned in the INI file.
If the specified customized files are not found at the OneDrive location, the application loads the default icons.
Example: To load toolbar icons from a specific OneDrive subdirectory, the following preference is applied:
[ToolBar]
IconPath=%onedrive%\PCommiconsReading OneDrive Files from a Macro
- By including the %onedrive% environment path inside the macro file, the application automatically expands the path during execution to locate the target file.
Example: The following VBScript macro demonstrates opening an Excel file hosted on OneDrive:
[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=Macro Example
[PCOMM SCRIPT SOURCE]
Option Explicit
Dim ObjExcel
set ObjExcel = CreateObject("Excel.Application.16")
ObjExcel.Visible = TRUE
ObjExcel.Workbooks.Open "%onedrive%\IBMPCOMM_ACAPS_FF_ADD_Bulk_Read.xlsx"Prerequsites:
Before using this feature, ensure that OneDrive is configured according to the instructions provided in the above sections.