AutoUploader-- a tool for upload base on FTP protocol

This is a tool for you to quickly upload your codes to dsesun10. I think it may make your upload work more quickly and simply. You can use this tool to instead of other FTP client tools when you upload files,source codes or meterials.
 
                                  ReadMe.txt
----------------------------------------------------------------------------------
              How to use AutoUploader
About tools:
1, This tool is based on FTP protocol, it just can upload files to FTP server.
2, It use dos shell to call ncftp to upload files;
 
How to use:
1, Copy the ncftpput.exe and ncftp.cfg to your pc, eg. D:\software\ncftp;
2, Modify ncftp.cfg with your server and user/password:
host [ftp-server]
user [login-user]
pass [login-password]
3, Put upload.bat to the folder which you need to upload;
4, Modify upload.bat with your conf:
rem ################ Configuration ##################
set remotePath=[where you need to upload to in the ftp server. eg. /bill_he/ADR/src]
set includeFolder=[If upload the subfolders: -R: Yes,upload all files and folder; Not-Set: No, Just upload the files(Not subfolders) in this folder. eg. -R]
set ncftpPath=[where is the ncftpput.exe in. eg.D:\software\ncftp]
set confPath=[where is the ncftp.cfg in. eg.D:\software\ncftp]
rem #################################################
5, If you modified your files and want to upload, you just need to double click the upload.bat, it will upload the files automatically.
----------------------------------------------------------------------------------
 
ncftp.cfg
----------------------------------------------------------------------------------
host dsesun10
user bill
pass password
----------------------------------------------------------------------------------
 
upload.bat
----------------------------------------------------------------------------------
@echo off
rem ################ Configuration ##################
set remotePath=./bill_he/ADR/src
set includeFolder=-R
set ncftpPath=D:\software\ncftp
set confPath=D:\software\ncftp
rem #################################################
 
echo Locale Path: ./
echo Remote Path: %remotePath%
echo conf files: %confPath%/ncftp.cfg
echo Start to upload files to remote path......
echo.
echo It may cost several minutes, please waiting......
echo.
%ncftpPath%/ncftpput -f %confPath%/ncftp.cfg %includeFolder% %remotePath% ./*
echo.
echo Finished upload files, please check the file list!
Pause
----------------------------------------------------------------------------------
 

你可能感兴趣的:(职场,ftp,休闲,自动上传,NcFTP)