wordpress 比较/东莞seo计费
0)从FTP上提取文件到源文件夹,然后备份、接着将源文件夹下的压缩文件进行解压缩、最终,提取只需要的文件!
1)ftp_to_goal.bat
echo '文件加载中……'
mkdir e:\1source
rem 将FTP服务器上的东西拿过来 prompt off 关闭主动模式
e:
cd e:\1source
ftp -n -s:e:\ftp_info.txt 10.1.3.27
rem 备份源: 新建一个文件夹,文件夹名为当前日期的
md E:\2backupSource%date:~0,4%%date:~5,2%%date:~8,2%
xcopy E:\1source\*.* E:\2backupSource%date:~0,4%%date:~5,2%%date:~8,2%\ /s
rem 新建中间文件夹,通过它中转到目标文件夹
mkdir E:\3middle_step\
D:\WinRAR\winrar x -ibck E:\etl\laf.tar.Z -w E:/3middle_step/
D:\WinRAR\winrar x -ibck E:\etl\cbs_data.tar -w E:/3middle_step/
rem 继续解压缩解压出来的压缩文件
D:\WinRAR\winrar x -ibck E:\3middle_step\cbs_iaf.unl.Z -w E:/3middle_step/
D:\WinRAR\winrar x -ibck E:\3middle_step\cbs_csft.unl.Z -w E:/3middle_step/
D:\WinRAR\winrar x -ibck E:\3middle_step\cbs_csft_t.unl.Z -w E:/3middle_step/
D:\WinRAR\winrar x -ibck E:\3middle_step\cbs_daf.unl.Z -w E:/3middle_step/
D:\WinRAR\winrar x -ibck E:\3middle_step\cbs_laft.unl.Z -w E:/3middle_step/
D:\WinRAR\winrar x -ibck E:\3middle_step\cbs_persacnt.unl.Z -w E:/3middle_step/
D:\WinRAR\winrar x -ibck E:\3middle_step\cbs_taf.unl.Z -w E:/3middle_step/
rem 以下是从源到目标夹
mkdir E:\4goal
xcopy E:\1source\brchparm.txt E:\4goal\ /s
xcopy E:\1source\cbs_tlist.unl E:\4goal\ /s
xcopy E:\1source\cbs_wjup_check.unl E:\4goal\ /s
xcopy E:\1source\cbs_savtypectrl.unl E:\4goal\ /s
rem 将需要的解压出来的文件放到目标文件夹
xcopy E:\3middle_step\cbs_iaf.unl E:\4goal\ /s
xcopy E:\3middle_step\cbs_csft.unl E:\4goal\ /s
xcopy E:\3middle_step\cbs_csft_t.unl E:\4goal\ /s
xcopy E:\3middle_step\cbs_daf.unl E:\4goal\ /s
xcopy E:\3middle_step\cbs_laft.unl E:\4goal\ /s
xcopy E:\3middle_step\cbs_persacnt.unl E:\4goal\ /s
xcopy E:\3middle_step\cbs_taf.unl E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8510.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8511.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8512.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8513.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8521.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8522.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8523.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8526.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8527.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8528.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8541.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8542.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8543.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8544.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8551.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8552.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8553.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8554.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8561.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8562.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8563.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8564.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8565.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8570.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8581.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8582.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8583.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8586.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8591.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8592.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8593.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8594.txt E:\4goal\ /s
xcopy E:\3middle_step\DDdayend\laf8595.txt E:\4goal\ /s
rem 删除中间文件夹
del /S /Q E:\3middle_step\
rmdir /s /Q 1 /S E:\3middle_step
rem 删除源文件夹
del /S /Q E:\1source\
rmdir /s /Q 1 /S E:\1source
exit
2)ftp_info.txt
user root
root
prompt off
mget brchparm.txt
mget savtypectrl.unl
mget tlist.unl
mget wjup_check.unl
mget laf.tar.Z
mget data.tar
bye