Batch Commands Rename

Batch Commands Rename

Channel:
Subscribers:
11,500
Published on ● Video Link: https://www.youtube.com/watch?v=ImCxXMhq32U



Duration: 18:16
926 views
5


█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█
[Synopsis]
This video shows you how to use the rename command on command prompt.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
[Codes]

rename c:\text now
(This will change the directory from text to now)

rename *.txt *.pdf
(This will change the files with .txt extension with .bat extension.)

rename * Now_*
(this will rename all files in a folder with Now_ . The asterisk * in the command is a a wildcard
command.)

rename "Ace1000ks1975.txt" "Ace1000ks.txt"
(This will rename the text file Ace1000ks1975 to Ace1000ks.)

Rename "New" "Now"
(This will change the file name new to now)

[Batch Script Used in Video]

@echo off
:start
cls
echo A - Change File Name
echo B - Exit Program
echo.
set /p Entry=
if %Entry% == A (
goto A
) else if %Entry% == B (
goto C
)

:A
cls
echo Please enter a file name you want to change
set /p change=
echo Please enter a file name you want to change to
set /p changeto=
d:
cd test
rename "%change%" "%changeto%"

echo Do you want to make another change? Y or N
echo.
set /p select=
if %select% == Y (
goto A
) else if %select% == N (
goto start
)
:C
exit
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
[Links]

◙ Computer Hope Website
https://www.computerhope.com/issues/ch001476.htm
█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█