자동
         
H O W S P A C E
최근게시물  |  마음가는대로  |  클럽
빈터
즐사이트
참고자료
일정관리
가계부
프로젝트
   
  [윈도우 > 윈도우] [윈도우]FTP BAT파일 정의
  글쓴이 : 빈터     날짜 : 16-04-21 11:08     조회 : 386    
  트랙백 주소 : http://www.howspace.kr/gbs/bbs/tb.php/gr2_10_data/370

ftpDelete.bat
@echo off
@title ftp upload

echo --------------------------------
echo Ftp data delete Start...
echo --------------------------------

echo del d:\ftpdataDelete\*.*
del d:\ftpdataDelete\*.* /q

echo --------------------------------
echo Ftp data delete done!!
echo --------------------------------

echo --------------------------------
echo Ftp data move Start...
echo --------------------------------

echo move d:\ftpdataBackup\*.*
move d:\ftpdataBackup\*.* d:\ftpdataDelete

echo --------------------------------
echo Ftp data move done!!
echo --------------------------------
ftpupload.bat
@echo off
@title ftp upload

echo --------------------------------
echo Ftp data transfer Start...
echo --------------------------------
echo ""

copy d:\ftpdata\*.* d:\ftpdataBackup\

C:\"Program Files"\WinSCP\winscp.com /script=d:\ftpscript.txt

 

echo ""
echo --------------------------------
echo Ftp data transfer done!!
echo --------------------------------
ftpscript.bat
open 172.24.135.72
lcd d:\ftpdata
put * -delete
close
quit


   

Copyright ⓒ howspace.co.kr. All rights reserved.

Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (../data/session) in Unknown on line 0