Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to script ftp commands


View products that this article applies to.

Author:

Yuval Sinay

↑ Back to the top


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.

↑ Back to the top


SUMMARY

The following article will help you script ftp commands

↑ Back to the top


Tips

 
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"
 
 
 

↑ Back to the top


Keywords: kb, KB555976, kbhowto, kbpubtypett, kbpubtypecca, kbpubmvp

↑ Back to the top

Article Info
Article ID : 555976
Revision : 4
Created on : 8/20/2020
Published on : 8/20/2020
Exists online : False
Views : 290