1. Home
  2. Command Line Client
  3. Adding an UNC Path to a Windows app

Adding an UNC Path to a Windows app

  1. Windows App should be running as a service.
  2. Create a system for the Windows App in the CFP web app. Label the system with the drive name.
  3. Select any drive letter from the Drive or Share. You’ll replace this drive letter with the UNC path in cfpclient.
  4. Log into cfpclient for that account.  Enter the following command to get system id:
  5. python cfp systems

  6. Find the system you want to convert to an UNC path and note the system ID:

  7. +-----------------------------+-----------+-----------+--------------------------+--------------------------+-------+
    | name | supertype | type | id | pop | valid |
    | Box  | system | box_admin | 591b43e320421c2844a6332c | 573c23d220421c32829e0a8b | True |

    | \\my share | system | windows | 59336b2720421c4f3331a255 | 591a3e2520421c2844a628c3 | True |

  8. Enter the following to set the UNC path to //unc/path:
  9. python cfp systems –-id 59336b2720421c4f3331a255  –-update -–fields drive_or_share=\"\/\/unc\/path\" --fieldjson --fieldsep=";"

    Where ‘59336b2720421c4f3331a255’ is the system id from the last command.  For the drive_or_share, you are escaping the beginning and end quotes, plus any forward slashes, with a backslash (\).

  10. The UNC path may appear just momentarily in the UI when the system is displayed, but if you build a job with it, it will enumerate the contents of that path.
Updated on April 19, 2019

Related Articles