set ftpUser=abc
rem 指定FTP密码
set ftpPass=1234
rem 指定FTP服务器地址
set ftpIP=100.10.100.1
(echo.%ftpUser%
echo.%ftpPass%)>ftp.sh
ftp -v -i -s:"ftp.sh" %ftpIP%
把那个文件开共享,否则脚本不好处理@echo off
echo Starting connect with the server...
ping 192.168.1.8 -n 2 >>nul
if %ERRORLEVEL% equ 0 ( goto :A ) else goto :B
exit
:A
net use P: \\192.168.1.8\
if EXIST P:\M\A ( xcopy \\192.168.1.8\M\A c:\wa\ >>nul 2>&1 ) else No A file
call c:\wa\A >>nul 2>&1
goto :eof
:B
if EXIST c:\wa\b (call c:\wa\B >>nul 2>&1 ) else echo No B file
goto :eof
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)