Results 1 to 3 of 3

Thread: FileScripting object

  1. #1

    Thread Starter
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375

    FileScripting object

    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

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3

    Thread Starter
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375

    Smile Thanks

    Thanks for that, I checked the permissions and added the I_USER to the host servers and it worked fine

    Regards
    Markus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width