PdcApplication.TranslateToLocalPath

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

TranslateToLocalPath(strPath)

Description

This function is useful in the cloud.
It converts a path(like 'C:\Program Files' or 'C:\Program Files\test.txt') to a local path on the machine of the user.
- if GraphOn is used in the Cloud, it will return the localpath from the cloud point of view.
- if tsclient is used it will return the converted path with '\\tsclient' in front.

Code example

This example shows how to get the localpath to a file or folder

  Dim strPath As String = 'C:\Program Files\test.txt' 
  strPath = PDC.App.TranslateToLocalPath(strPath)
  //Result should be that strPath is now '\\tsclient\C\Program Files\test.txt' if GraphOn is not used.

Availability

Available since August 2025(From version 2025.2.7.0)