PdcApplication.TranslateToLocalPath

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

TranslateToLocalPath(strPath)

Description

This function takes a path(like 'C:\Program Files' or 'C:\Program Files\test.txt') and based on if GraphOn is used in the Cloud, it will return the localpath from the cloud point of view. If GraphOn is not used it will return 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)