Thread command in windows

The renaming command helps change file names or directories.

The renaming command helps change file names or directories.Basically, this command is similar to therenamecommand.To learn more about how to use this command, see the example section below.

Syntax command syntax

 lace [:] [] 
rename [:] []

Thread command parameter

Parameters

Describe

[:] []

Specify the location and name of the file or set of files you want to rename.The parameter FileName1 can include wildcards (* and?).

 

Specify a new name for the file.You can also use wildcards to specify new names for multiple files.

/?

Show help at thecommand prompt.

Remarks command rem

You will not be able to specify a new drive or path when renaming the file.

You will not be able to use the ren command to rename the file on the drive or move the file to another folder.

You can use wildcards (* and?) In the FileName parameters.The characters represented by the wildcard characters in FileName2 parameter will be the same as the corresponding characters in the FileName1 parameter.

FileName2 must be a unique file name.If FileName2 matches an existing file name, the ren command will display the following message:

 Duplicate tên tập tin hoặc không tìm thấy tập tin 

Example lace command

To change all .txt file name extensions in the current directory to .doc format, enter:

 lace * .txt * .doc 

To change the directory name from Chap10 to Part10, type:

 lace chap10 part10 

See more:

  1. Change any file or folder name in Windows
  2. Discover new features in Windows Server 2019
  3. Learn about Windows Server 2012 (Part 1)
4 ★ | 1 Vote