Dear Kris,
You can specify the "&AtServer" compilation directive for your procedure or function. As a result, this piece of code will address to file resources of the computer where 1C:Enterprise server's rphost.exe process runs.
To be able to successfully access the file resources, the user on behalf of whom you run the rphost process should have appropriate rights to them.
Best regards,
Vladimir Gurov