` Printed Icetips Article

Icetips Article



Par2: IC opening files on another server
2001-03-07 -- Dave
 
> I'm trying to open files on another server or PC from my Webserver
> application.
> I use UNC naming : \\PEPPIER\D\DAta\cust.tps
>
> Howerver it fails to open the file.
> It does work when i open the program on the server the App is running.
> How can I point to a file on another server ?

I did it by not setting a path for the files in the dictionary then putting
the following code on the main form before opening the files.

    g_path = GETINI('global','datapath','','some_ini_file.ini')
    setpath(clip(g_path))
then if the path changes you only have to update the INI not recompile the
prog.



Printed November 21, 2024, 12:42 pm
This article has been viewed/printed 35220 times.