Results 1 to 2 of 2

Thread: Remote File Generation

  1. #1

    Thread Starter
    Lively Member Ianf's Avatar
    Join Date
    Mar 2000
    Leigh, Lancashire, UK



    Does anyone know how to open a connection to a remote server and write file in a known directory in VBScript????



  2. #2
    New Member
    Join Date
    Oct 2000

    Remote files

    You have 2 problems, and need 2 solutions.

    The first problem is having to write to text file and save it to a local hard drive - this is very simple to do using the Scripting.FileSystemObject.

    The second problem is not quite a simple. There are 2 options - you can try to create a mapped drive in your code, and then save your file to the mapped drive (using the WScript.Network Object). The second is to create or use a custom FTP control and FTP the file to it's location based on the WinInet control. Check out Niles Black's free ASPFTP COM-object for more info on this, but remember, the directory needs to have FTP access.

    Good luck,

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