Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

1.3.1bat script commands RENAME REN to rename the file

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Clerk, network management skills: Windows command line bat/cmd batch script writing application file management application

1.3.1bat script commands RENAME REN to rename the file

Command:

RENAME REN= RENAME

REN [drive letter:] [path]

Simple application:

The current directory creates a folder (if the drive letter path is not written, it is the current directory by default)

Ren original file name 1 new file name 1

Ren original file name 2 new file name 2

Ren original file name 3 new file name 3

.

Normal application:

Specify directory creation folder

Ren [drive letter:] [path] original file name 1 new file name 1

Ren [drive letter:] [path] original folder name 1 new folder name 1

Ren "[disk letter:] [path] original text name 2"New document name 2"

.

PS: there are spaces in the directory or file name to be enclosed in quotation marks.

Practical case

Before writing, let's set the "folder options" and uncheck the "hide the extension of the known file type".

1. The current directory file kkkk.txt has been renamed to 666.txt

Ren kkkk.txt 666.txt

two。 The current directory file kk k k.txt has been renamed to k666.txt

Ren "kk k k.txt" 666.txt

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report