When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles [1.x] [2.0]
ASPFAQs.com
Message Board
Related Web Technologies
User Tips!
Coding Tips
Search

Sections:
Book Reviews
Sample Chapters
Commonly Asked Message Board Questions
Headlines from ASPWire.com
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Security
Stump the SQL Guru!
Web Hosts
XML Info
Information:
Advertise
Feedback
Author an Article
Technology Jobs



















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
ASP ASP.NET ASP FAQs Message Board Feedback ASP Jobs
Print this page.

Contract Web Developers Needed
Aquent
US-PA-Philadelphia

Justtechjobs.com Post A Job | Post A Resume

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!

    FAQ Table of Contents   Iterating through the FileSystemObject Collections  


    Windows Internet Technology | ASP.NET [1.x] [2.0] | ASPMessageboard.com | ASPFAQs.com | Advertise | Feedback | Author an Article

  • internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info

    Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers