Jump to content
Sign in to follow this  

Troi File: opening network folders in mixed environment

Recommended Posts

I'm using the "TrFile_SelectFolderDialog" function to select a folder (from a network drive) and store the path in a field.

Then I use "TrFile_Launch" to open the folder.

This database runs on both Mac and PCs.

If I select a network folder (file server) from a MAC and then use the "TrFile_Launch" from a MAC then it works fine.

If I select network folder (file server) from a PC and then use the "TrFile_Launch" from a PC then it also works fine.

The problem happens when "TrFile_SelectFolderDialog" is triggered from a MAC and then I use "TrFile_Launch" to open the same network folder from a PC (and vice versa), it just doesn't open.

"TrFile_SelectFolderDialog" stores the network folder path on the PC database as:


"TrFile_SelectFolderDialog" stores the folder path on the MAC database as:


I had thought of using the "substitute(...)" function in order to translate the path from one platform to the other, but the problem is that apparently the "TrFile_SelectFolderDialog" doesn't store the volume name, that is, the stored path starts with the first folder and it omits the network volume name. Therefore, if the folder is selected from a Mac, I cannot "translate" that path to a PC path since the volume name is missing.

Any ideas about how to make this work? Any help would be greatly appreciated!

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.