Login | |
|
 |
RE: auto ftp download - 2/15/2006 11:14:32 PM
|
|
 |
|
| |
ginolard
Posts: 1043
Score: 21
Joined: 8/10/2005
Status: offline
|
An FTP script is simply a list of FTP commands one after the other. For example. Open myhost.com mylogin mypassword lcd c:\temp CD \etc binary mput *.gz y Close Quit That script connects to myhost.com with the login mylogin and password mypassword. It then changes directory on the local machine to C:\temp, changes directory on the remote machine to \etc and then transfers all files with .gz extension from the local machine to the remote machine. To execute that in a vbscript simply save it a file with the extension SCR (e.g. ftp.scr) and run it via the shell method. Like so Set WShell = CreateObject("WScript.Shell") WShell.Run "ftp -s:c:\temp\ftp.scr",0
_____________________________
Author of ManagePC - http://managepc.net AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
|
|
| |
|
|
|
 |
RE: auto ftp download - 2/16/2006 8:36:17 AM
|
|
 |
|
| |
Cybex
Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
|
Pork1977, Glad to see you finally made it to a site that will actually help you. Sorry i wasn't able to help you more eariler. Cybex
_____________________________
Common sense is not so common.
|
|
| |
|
|
|
|
|