How to access files that are on another server?
Posted: Fri Aug 07, 2009 2:56 pm
by ConvertFromOldNGs
by Anonymous >> Mon, 15 May 2006 21:29:23 GMT
Hi,
Is there any way that I access files that are on another server?
thanks,
Re: How to access files that are on another server?
Posted: Fri Aug 07, 2009 2:56 pm
by ConvertFromOldNGs
by allistar >> Mon, 15 May 2006 22:04:09 GMT
Your question lacks specifics, so I'll assume you want to access files from within Jade code that reside on another server. The simplest way of doing this is to have a drive mapping to the other server, or use the UNC path. This requires you to have file sharing and permissions set up appropriately. In code you could do something like this:
vars
file: File;begin
create file transient;
file.fileName := "\\someserver\sharename\foldername\filename.txt";
file.mode := file.Mode_Input;
//read from file here
epilog
delete file;
end;
If you meant something else, let us know.
Regards,
Allistar.