China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-15 10:38
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Can batch processing rename a specified file? View 1,709 Replies 1
Original Poster Posted 2010-07-26 08:51 ·  中国 山东 德州 电信
新手上路
Credits 5
Posts 2
Joined 2010-07-18 23:45
16-year member
UID 170725
Gender Male
Status Offline
I just want to rename a single file in a specified directory. I've been searching online for a long time and all I find are batch renaming in bulk, so I'm asking for a batch command to rename a single specified file in a directory. Big shot, please post a piece of code!
Floor 2 Posted 2010-07-26 16:50 ·  中国 广东 广州 增城区 电信
新手上路
Credits 17
Posts 13
Joined 2006-09-06 13:27
19-year member
UID 61973
Status Offline
Batch processing: Rename C:\11\123\456.txt to 789.exe
ren c:\11\123\456.txt 789.exe
Prerequisite: 456.txt cannot be running.
Forum Jump: