PDA

Click to See Complete Forum and Search --> : Remote File Generation


Ianf
Oct 30th, 2000, 10:06 AM
Hello

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

Cheers

Ian

jkirk
Oct 30th, 2000, 03:37 PM
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,
-jason