How to script ftp commands

Article translations Article translations
Article ID: 555976 - View products that this article applies to.
Author: Yuval Sinay
Expand all | Collapse all

SUMMARY

The following article will help you script ftp commands

Tips

How to script ftp commands

 
Before you use the following script, please remember that FTP protocol
 
don’t allow encryptions the authentication process and the data transitions.
 
1. Create a new text file with the following text:
 
     open "myservername/serverip"
     "%username%"
     "password"
     cd /upload
     bin
     hash
     put/get "filename.cab"
     bye
 
  Note: Please choose the correct ftp commands to allow the script to work.
 
2. Save the file as runftp.txt (For example).
 
3. Run the command:
 
   "c:\windows\system32\ftp.exe -s:runftp.txt"
 
 
 

Properties

Article ID: 555976 - Last Review: September 10, 2007 - Revision: 1.0
APPLIES TO
  • Windows Vista Business
  • Windows Vista Enterprise
  • Microsoft Windows XP Professional
COMMUNITY SOLUTIONS CONTENT DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com