|
-
Oct 30th, 2000, 11:06 AM
#1
Thread Starter
Lively Member
Hello
Does anyone know how to open a connection to a remote server and write file in a known directory in VBScript????
Cheers
Ian
-
Oct 30th, 2000, 04:37 PM
#2
New Member
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,
-jason
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|