Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo Off
- setlocal EnableDelayedExpansion
- set _my_Current_Folder=C:VEHADARTARoutine_TasksT001_Daily_Changes
- Set _FTPServerName=84.95.247.239
- Set _UserName=XXXX
- Set _Password=YYYY
- Set _RemoteFolder=public_html/vehadarta/Batch_Jobs/
- Set _Filename=Daily_Changes.sql
- Set _ScriptFile=ftp1
- call :Put_the_Daily_Changes_sql_file_in_FTP_Server
- pause
- exit
- :Put_the_Daily_Changes_sql_file_in_FTP_Server
- >"%_ScriptFile%" Echo verbose
- >>"%_ScriptFile%" Echo open %_FTPServerName%
- >>"%_ScriptFile%" Echo %_UserName%
- >>"%_ScriptFile%" Echo %_Password%
- >>"%_ScriptFile%" Echo cd %_RemoteFolder%
- >>"%_ScriptFile%" Echo lcd %_Current_Folder%
- >>"%_ScriptFile%" Echo prompt
- >>"%_ScriptFile%" Echo binary
- >>"%_ScriptFile%" Echo put %_Filename%
- >>"%_ScriptFile%" Echo quit
- :: Run script
- ftp -s:"%_ScriptFile%"
- Del "%_ScriptFile%"
- exit /b
Add Comment
Please, Sign In to add comment