Rename Command (Piv txwv, Options, Switches, & Ntau)

Cov txheej txheem:

Rename Command (Piv txwv, Options, Switches, & Ntau)
Rename Command (Piv txwv, Options, Switches, & Ntau)
Anonim

Cov lus txib rename yog siv los hloov npe ib qho ntaub ntawv lossis nplaub tshev los ntawm Command Prompt.

Rename thiab ren tuaj yeem siv sib hloov. Lawv yog tib cov lus txib.

Image
Image

Rename Command Availability

Cov lus txib hloov npe yog muaj nyob rau hauv Command Prompt hauv feem ntau ntawm Windows, suav nrog Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server operating systems, thiab qee qhov qub ntawm Windows, too.

Cov lus hais kom hloov npe kuj muaj nyob rau hauv Rov Qab Console hauv Windows 2000 thiab Windows XP. Saib peb cov npe Recover Console kom paub ntau ntxiv.

Rename Command Syntax

rename [drive: [path] filename1 filename2

Saib Yuav Ua Li Cas Nyeem Command Syntax yog tias koj tsis paub meej yuav ua li cas nyeem cov rename command syntax piav saum toj no lossis hauv cov lus hauv qab no.

Rename Command Options
piav qhia
drive: Nov yog tus tsav uas muaj cov ntaub ntawv koj xav hloov npe.
pab Nov yog cov ntawv tais ceev tseg lossis cov ntawv tais ceev tseg nyob rau ntawm lub tsav:, muaj cov ntaub ntawv npe1 uas koj xav hloov npe.
filename1 Nov yog lub npe ntawm cov ntaub ntawv koj xav hloov npe.
filename2 Nov yog lub npe koj xav hloov npe filename1 rau. Koj tsis tuaj yeem qhia tus tsav tshiab lossis txoj hauv kev rau cov ntaub ntawv hloov npe.

Cov lus hais kom hloov npe tsuas yog siv tau los hloov npe cov ntaub ntawv hauv cov kab ke kaw lus ntawm qhov kev teeb tsa Windows tam sim no, hauv kev tshem tawm, hauv cov hauv paus nplaub tshev ntawm ib qho kev faib, lossis hauv qhov chaw teeb tsa hauv zos.

Rename Command Piv txwv

Hauv qab no yog ob peb yam piv txwv qhia tias koj tuaj yeem siv lub npe hloov npe li cas.

Rename File in Specified Folder


rename c:\windows\win.ini win.old

Hauv cov lus hais saum toj no, peb tab tom hloov npe win.ini, nyob hauv C:\Windows nplaub tshev, kom win.old.

Rename File in the Same Folder


rename boot.new boot.ini

Nyob rau hauv qhov no, cov lus txib rename tsis muaj tsav: lossis cov ntaub ntawv qhia txog kev teev tseg, yog li cov ntaub ntawv boot.new tau hloov npe rau boot.ini, tag nrho hauv cov npe koj tau ntaus lub npe rename los ntawm.

Piv txwv li, yog tias koj ntaus rename boot.new boot.ini los ntawm C:\> kom sai, cov ntaub ntawv boot.new nyob hauv C:\ yuav raug hloov npe rau boot.ini.

Rename File Extension and Name


ren file.bak regfile.reg

Hauv qhov piv txwv no, cov lus hais kom hloov npe (ua luv luv ntawm no rau ren) tsis yog siv los hloov lub npe "ib txwm" filename tab sis tsuas yog cov ntaub ntawv txuas ntxiv, zoo ib yam li ob qho piv txwv saum toj no. Qhov no tsis yog ib yam uas koj yuav ua ntau zaus, tab sis yog tias koj rau qee qhov laj thawj los hloov cov ntaub ntawv txuas ntxiv, koj tuaj yeem ua li ntawd nrog rename command.

Peb tab tom hloov lub npe thaub qab nrog cov ntaub ntawv bak txuas ntxiv mus rau cov ntaub ntawv nrog REG cov ntaub ntawv txuas ntxiv kom peb tuaj yeem rov qab mus rau Windows Registry (ib yam dab tsi koj tuaj yeem ua yog tias nws xaus rau hauv.reg).

Txawm li cas los xij, peb kuj tseem hloov lub npe ntawm cov ntaub ntawv rau regfile, ib yam dab tsi peb tuaj yeem ua hauv tib cov lus txib kom peb tsis tas yuav khiav ob qho lus txib.

Hloov cov ntaub ntawv txuas ntxiv tsis tau hloov cov ntaub ntawv hom. Tsis zoo li cov ntaub ntawv hloov pauv cov cuab yeej uas tsim cov ntaub ntawv tiag tiag nws tus kheej, cov lus txib ren tsuas tuaj yeem kho cov lus xaus. Hauv ntau qhov xwm txheej, zoo li hauv qhov piv txwv saum toj no, qhov no ua rau Windows kho nws txawv (piv txwv li, tam sim no nws tuaj yeem qhib hauv Windows Registry).

Rename ib Folder


ren pictures "paj pics"

Nyob rau hauv cov qauv kawg no, peb siv cov rename command kom rename ib nplaub tshev es tsis txhob cov ntaub ntawv. Cov duab nplaub tshev yuav dhau los ua cov duab so haujlwm. Quotes yog siv nyob ib ncig ntawm lub npe nplaub tshev vim nws muaj qhov chaw.

Rename Related Commands

Cov lus txib no feem ntau siv nrog cov lus txib dir kom koj tuaj yeem pom cov npe ntawm cov ntaub ntawv hauv Command Prompt ua ntej xaiv qhov twg los hloov npe.

Pom zoo: