[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文本处理] 求助 批处理下载FTP XP可以运行,W7没反应求解答!

@echo off
:yy
setlocal
set /p LotID=请输入Lot ID(小写):

if not "%lotid:~0,2%"=="1a" set "gs=t"
if "%gs%"=="t" echo Lot ID输入错误!&endlocal&goto yy
echo %lotid:~6,4%|findstr "^[0-9]*$" >nul|| (
  echo\&echo Lot ID输入错误!
  endlocal&goto yy
)
set "str=%lotid%"
set "str=%str:"= %"
:next
if not "%str%"=="" (
    set /a num+=1
    set "str=%str:~1%"
    goto next
)
if not "%num%"=="10" set "chd=aa"
if "%chd%"=="aa" echo Lot ID输入错误!&endlocal&goto yy
set "a=%LotID:~0,6%"
set "b=%LotID:~6,2%"
set "c=%LotID:~8,2%"
:zz
setlocal
set /p piat=请输入Code:
set "lu=%piat%"
set "m=%lu%"

md %lotid%-%m%
(echo open 10.20.1.1
echo admin
echo admin
echo bin
echo lcd %dektop%
echo lcd %lotid%-%m%
echo cd %lu%/%a%/%b%/%c%/img
echo bin
echo prompt off
echo mget *.jpg
echo pause
)>%tmp%\temp.htp
ftp -s:%tmp%\temp.htp
@ del /q /s %tmp%\temp.htp
start explorer %lotid%-%m%
echo pause

求解答! W7 为啥运行没反应啊

TOP

没有大神吗?

TOP

返回列表