PDA

Click to See Complete Forum and Search --> : FileScripting object


MarkusJ_NZ
Jul 12th, 2001, 09:11 AM
Can the fileScripting object be used to open text files on other servers?

eg;

Set ofile = oFileSystem.GetFile("\\OtherServer\data\file.txt")

or can it only work off directories stored on the web server?

If is cannot be done how can I open a file on a remote server fro reading?

Thanks
Markus

CiberTHuG
Jul 12th, 2001, 09:39 AM
That should work provided the script has permissions on the remote server and the network is configured.

If the script is in an ASP, it is going to be running as IIS_USER (or something like that). That account has to have domain wide access, or access to that remote path. If that access is challenged (Please provide ID and password) then it won't work.

There are ways to remedy that, but if you can avoid it is best.

I'm sure someone else can speak more to that, but play around with access and see what happens.

MarkusJ_NZ
Jul 13th, 2001, 09:53 AM
Thanks for that, I checked the permissions and added the I_USER to the host servers and it worked fine

Regards
Markus