How to access files that are on another server?

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

How to access files that are on another server?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:56 pm

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,

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to access files that are on another server?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:56 pm

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.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 7 guests