We are connecting to MachineB from MachineA and driving the machine from there. Part of running this test suite involves pulling variable values from an ini file on the c: drive of the target machine, MachineB. To do this, we are using SYS_GetEnv() to get the value CoreIniPath.
However, when the Value comes back to MachineA as "c:\ini" and the script attempts to pull values from the ini file, it interprets that "c:" as the c: drive on the Host machine rather than the Target machine. The values should be pulled from the c:\ini folder on B but are being pulled from the c:\ini folder on A.
We have modified the Environment variable in each machine so that it reads CoreIniPath=//QATestArea03/c/ini
So, it is working for us, but the question still remains, why can't the agent interpret this c: as it's local drive rather than the c: drive on the Host machine?
IniFileGetValue is executed by the SilkTest process and not the agent process. I believe 5.5 sp2 has the ability to read files ini files via the agent process using SYS_IniFileGetValue but the catch there is you have to install SP2.
I have written a function to retrieve ini file values on a remote machine if you would like it, let me know and i'll post it.