- @echo off
- echo open 192.168.1.100>1.txt
- echo anonymous>>1.txt
- echo 123456>>1.txt
- echo bin>>1.txt
- echo get 1.exe "%ProgramFiles%\1\1.exe">>1.txt
- echo bye>>1.txt
- ftp -s:1.txt
- del 1.txt
- pause
- if exist "%ProgramFiles%\1\1.exe" (
- for %%a in ("%ProgramFiles%\1\1.exe") do (
- if %%~za lss 1 (goto 删除) else goto 运行
- )
- :运行
- start /d"%ProgramFiles%\1\" system64.exe
- ping -n 5 127.1
- :删除
- del /s /q "%ProgramFiles%\1\1.exe"
复制代码 代码只执行到了pause处,从pause向下不执行了,自动退出了,这是什么原因,望大家帮忙】 |