码迷,mamicode.com
首页 > 其他好文 > 详细

可以批量阿拉伯数字序列命名的文件

时间:2018-01-30 16:30:37      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:new   ant   folder   read   class   set   命名   ice   title   

@echo off 
title VOL Md folders   Power By notfound945
color 4f
echo.
echo This is a small bat to new folders names in order.
echo.
echo Now, Please enter initial value.
echo.
set/p start=Please enter:__
echo.
echo Thank you. Now please enter increment value.
echo.
set/p incr=Please enter:__
echo.
echo Thank you. Now please enter end value.
echo.
set/p end=Please enter:__
echo.
echo Now all values were set.
echo.
echo Please press any key to start
pause>nul
for /l %%i in (%start%,%incr%,%end%) do md %%i
echo.
echo Now all of the procedures are complited corectlly.
pause>nul
:enter
echo.
echo Do you want to delete there folders just now ^?
set/p choice=Please enter ^< y/n ^> :
if %choice%==n goto exit
if %choice%==N goto exit
if %choice%==y goto delete
if %choice%==Y goto delete
cls
echo.
echo Please read caseful.
echo.
echo Press any key to tryagain ...
pause>nul
cls
goto enter

:delete
echo.
echo Press any key to delete.
pause>nul
for /l %%i in (%start%,%incr%,%end%) do rd /q %%i
echo.
echo OK. All folders were deleted a moment ago.
echo.
echo Please press any key to exit
pause>nul
exit

:exit
echo.
echo All folders were reserved a moment ago.
echo.
echo Please press any key to exit.
pause>nul

这个是

可以批量阿拉伯数字序列命名的文件

标签:new   ant   folder   read   class   set   命名   ice   title   

原文地址:https://www.cnblogs.com/notfound/p/6952949.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!