setlocal enabledelayedexpansion
設置y=9999999999
設置文件存在=否
設置覆蓋=y
set/p n =輸入壹個數字:
設置topath="c:\dictionary.txt "
如果存在%topath% echo已經存在,並且具有相同的名稱& set fileexist=yes
:c
if " % file exist % " = = " yes " set/p overwrite =是否覆蓋現有文件(y覆蓋寫入,n追加寫入):
如果" %overwrite%"=="y "(
del %topath% /f
)else(
如果不是" %overwrite%"=="n" echo輸入錯誤,只有Y或N &;轉到c
)
for /l %%i in (1,1,y:~-%n%!)do(設置qq=0000000000%%i
回聲!qq:~-%n%!& gt& gt%topath%)
回顯密碼文件已保存到%topath%。
中止