PdcApplication.TranslateToLocalPath: Difference between revisions
Jump to navigation
Jump to search
Created page with "== 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 <source lang="vb"> Dim strPath As String = 'C:\Program Files\test.t..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
== Description == | == Description == | ||
This function | This function is useful in the cloud.<BR> | ||
It converts a path(like 'C:\Program Files' or 'C:\Program Files\test.txt') to a local path on the machine of the user.<BR> | |||
- if GraphOn is used in the Cloud, it will return the localpath from the cloud point of view.<BR> | |||
- if tsclient is used it will return the converted path with '\\tsclient' in front.<BR> | |||
== Code example == | == Code example == | ||
Latest revision as of 12:17, 12 June 2026
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)