To read the article online, visit http://www.4GuysFromRolla.com/webtech/faq/FileSystemObject/faq6.shtml

Using FSO to Access a File on a Remote Computer


Did you know that you can use FSO to open or create a text file on a remote computer? The computer must be part of your network, and shared out correctly. If these conditions are met, though, you can use FSO in a fashion similar to:

Const ForReading = 1 Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set MyFile = objFSO.OpenTextFile("\\<machinename>\myfile.txt", ForReading)

Before you rush out and try this, first realize that this will probably generate an error.

With IIS 4.0, security issues make it a little difficult to work with files on remote computers using FSO. In fact, you have to jump through several hoops to get this working. Thankfully, Microsoft has written a TechNet article on this, which explains what security settings you'll need to fiddle with...

  • http://support.microsoft.com/default.aspx?scid=kb;EN-US;197964

    Supposedly this is suppose to be fixed for Windows 2000... Of course we'll have to wait and see!

    Happy Programming!


  • Article Information
    Article Title: Using FSO to Access a File on a Remote Computer
    Article Author: Scott Mitchell
    Article URL: http://www.4GuysFromRolla.com/webtech/faq/FileSystemObject/faq6.shtml


    Copyright 2017 QuinStreet Inc. All Rights Reserved.
    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers