Hi i know it's easy to get the path of the Classic Client with APPLICATIONPATH. But if you use this with RTC it returns the path of the Service-Tier. So how to get the path of the client?
CREATE(WSH,FALSE,TRUE); //create automation on client
RegValue := WSH.RegRead('HKEY_CLASSES_ROOT\DYNAMICSNAV\Shell\Open\Command\'); //find registrykey for navisionlink
RegValue := COPYSTR(RegValue,1,STRLEN(RegValue)-5); // delete "%1" from text
Exit(RegValue); // return path of the exe-file
Comments
Maybe .net interop helps: http://msdn.microsoft.com/en-us/library/aa457089.aspx
Be sure to set Property RunOnClient of your DotNet variable "Assembly" to True.
Variables:
Name DataType Subtype Length
Assembly DotNet System.Reflection.Assembly.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Path DotNet System.IO.Path.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
I was thinking about it a while and then I found my own working solution:
Variables
Name____DataType___Subtype_______Length
WSH_____Automation_'Windows Script Host Object Model'.WshShell
RegValues___Text____________________1024
Code
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks a lot!!
Johannes Sebastian
MB7-840,MB7-841