Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- TITLE ~~~*** NAJEEB FILES RENAME ***~~~
- COLOR 1B
- Mode con cols=75 lines=12
- :home
- ECHO ~~~*** NAJEEB SHAH KHAN FILES RENAME ***~~~
- ECHO %TIME% %DATE%
- ECHO -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ECHO.
- echo 0) Najeeb Commands
- echo 1) File Extension Change
- echo 2) File Rename Numerical Numbers
- echo.
- set /p web=TYPE OPTION:
- if "%web%"=="0" goto nsk
- if "%web%"=="1" goto ext
- if "%web%"=="2" goto ren
- pause:
- set /p MT= Type GO TO Here:
- Pause:
- CALL GOTO %MT%
- ::============================NSK COMMANDS==============================
- :nsk
- cls
- ECHO ~~~*** NAJEEB SHAH KHAN CMD COMMANDS***~~~
- echo %TIME% %DATE%
- echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ECHO ~**Most Commonly Used Internal and External DOS Commands Exmple**~
- ECHO.
- Echo TYPE:COMMANDS (Type COM.ini)
- Echo ATTRIB,CALL,CD,COPY,CLS,CLIP,DATE,DEL,DIR,EDIT,
- Echo ERASE,EXIT,FIND,FINDSTR,FOR,FORMAT,HELP,IF,
- Echo MD,MKDIR,MOVE,PATH,PAUSE,RD,RMDIR,REN,RENAME,
- Echo SET,SORT,TIME,TREE,TYPE,UNDELETE,VER,VOL,WMIC
- ECHO.
- set /P "input=Command: "
- cls
- call %input%
- ECHO.
- pause:
- goto home
- ::============================Extension==============================
- :ext
- set /p input= Original File Type Change Extension Only =
- set /p input2= Type Change Extension Only =
- ren *.%input% *.%input2%
- Pause:
- goto home
- ::============================Rename==============================
- :ren
- set /p start=Please Enter The Starting Control Number:
- set /p ALP=Please Enter Alphabet :
- set /p EXT=Please Enter Extension :
- setlocal enableDelayedExpansion
- for /r %%g in (*.%EXT%) do (call :RenameIt %%g)
- goto :eof
- goto :exit
- :RenameIt
- echo Renaming "%~nx1" to !start!%~x1
- ren "%~nx1" %ALP%!start!%~x1
- set /a start+=1
- goto :eof
- :exit
- exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement