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-06-25 05:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Interface-free version Batch file renaming beat1.3 [20061214] update View 12,416 Replies 63
Original Poster Posted 2006-12-05 04:36 ·  中国 河南 郑州 电信
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
C:\Documents and Settings\Administrator>pren
GNU Pren beat1.3
Usage: pren

Startup:
/h, --help print this help.
/s, --short TV play series rename.
/m, --eliminate eliminate char.
/a, --append append char.
/r, --replace replace char.
/e, --extend replace ext.

Example:
pren /s "e:\New Download\I Love U 01.en.d-vb.rmvb"
Ending: e:\New Download\01.rmvb

pren /m "e:\New Download\"
Ending: e:\New Download\I Love U 01.en.d-vb.rmvb

pren /a "e:\New Download\"
Ending: e:\New Download\I Love U 01.en.d-vb.rmvb

pren /r e:\NewDownload\
Ending: e:\New Download\I Love U 01.en.d-vb.rmvb

pren /s rm e:\NewDownload\
Ending: e:\New Download\I Love U 01.en.d-vb.rm


Mail bug reports and suggestions to <zzlike@163.com>.

[ Last edited by a9319751 on 2006-12-15 at 04:55 AM ]
Recent Ratings for This Post ( 4 in total) Click for details
RaterScoreTime
redtek +5 2006-12-06 04:24
lxmxn +8 2007-05-13 03:33
qpmgljf +1 2007-11-20 21:33
xlp +1 2007-12-09 15:11
Attachments
批量文件改名.rar (2.46 KiB, Credits to download 1 pts, Downloads: 825)
pren.rar (1.07 KiB, Credits to download 1 pts, Downloads: 533)
Floor 2 Posted 2006-12-05 11:05 ·  中国 江西 吉安 遂川县 电信
中级用户
★★
Credits 253
Posts 112
Joined 2006-05-31 11:12
20-year member
UID 56308
Gender Male
Status Offline
That's good.
If we could choose the path, I believe it would be better.
Also, for changing file extensions and so on, it would be nice to have an option to ignore (folders, etc.).
Floor 3 Posted 2006-12-06 04:02 ·  中国 河南 郑州 电信
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
Originally posted by junyee at 2006-12-5 11:05:
Not bad,
If you can choose the path, I believe it will be better,
Also, for changing the extension, it would be nice to have an option to ignore (folders, etc.)


Thank you for your suggestion
The new version already supports path setting
Added changing the extension
Ignored folders
bat c c++
Floor 4 Posted 2006-12-06 12:03 ·  中国 湖北 武汉 电信
新手上路
Credits 5
Posts 3
Joined 2006-12-05 12:30
19-year member
UID 72635
Gender Male
Status Offline
The version is updated quickly, supportive!
Floor 5 Posted 2006-12-06 19:34 ·  中国 湖北 宜昌 电信
初级用户
Credits 30
Posts 26
Joined 2006-10-25 12:39
19-year member
UID 68219
Gender Male
Status Offline
This line of code `set "oldname=%oldname:"=%"` is used in batch scripting. It is removing all double quotes from the variable `oldname`. Specifically, it's using the substitution operation in batch to replace all occurrences of double quotes in the value of `oldname` with an empty string.
Floor 6 Posted 2006-12-07 03:25 ·  中国 河南 郑州 电信
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
Originally posted by nanoking at 2006-12-6 12:03:
Updates come quickly, good support!


Thanks for your support. We hope that everyone will report any issues they encounter during use and provide more suggestions
bat c c++
Floor 7 Posted 2006-12-07 03:26 ·  中国 河南 郑州 电信
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
Originally posted by yqadsq1314 at 2006-12-6 19:34:
What does "set "oldname=%oldname:"=%" mean?


Remove the quotation marks ("") from the variable oldname
bat c c++
Floor 8 Posted 2006-12-14 02:27 ·  中国 吉林 长春 联通
初级用户
Credits 46
Posts 24
Joined 2006-12-13 23:06
19-year member
UID 73425
Gender Male
Status Offline
Floor 9 Posted 2006-12-14 03:42 ·  中国 浙江 宁波 鹏博士宽带
荣誉版主
★★★
Credits 1,338
Posts 356
Joined 2005-07-15 12:09
20-year member
UID 40733
Gender Male
Status Offline
A little suggestion:
I think the advantage of batch processing is non-interactive batch operations. Can we find a way to add parameter options to directly call a certain function for renaming operations? Moreover, why do you like to output so much information, which is as much as more than 200 lines.
  ☆开始\运行 (WIN+R)☆
%ComSpec% /cset,=何奈无── 。何奈可无是原,事奈无做人奈无&for,/l,%i,in,(22,-1,0)do,@call,set/p= %,:~%i,1%<nul&ping/n 1 127.1>nul

Floor 10 Posted 2006-12-14 03:48 ·  中国 河南 郑州 电信
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
Thanks to the moderator for guidance, will improve immediately
bat c c++
Floor 11 Posted 2006-12-14 04:46 ·  中国 安徽 合肥 电信
新手上路
Credits 14
Posts 6
Joined 2006-11-03 22:59
19-year member
UID 69456
Gender Male
Status Offline
It works very well. It would be even more perfect if we could choose "Change within the currently opened folder".
Floor 12 Posted 2006-12-14 04:51 ·  中国 河南 郑州 电信
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
Originally posted by linjie at 2006-12-19 04:46:
It works very well.
It would be even more perfect if you could choose "Change within the currently opened folder".


If opening multiple folders is prone to errors, do you mean multiple folders, the one at the top?
bat c c++
Floor 13 Posted 2006-12-14 04:55 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
Well written. Plus points.
Floor 14 Posted 2006-12-14 04:56 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
Hehe, I added too many points today, and it's prompting me that I can't add more. I'll add them for you tomorrow.
Floor 15 Posted 2006-12-14 05:01 ·  中国 河南 郑州 电信
中级用户
★★
Credits 439
Posts 170
Joined 2006-01-09 20:29
20-year member
UID 48707
Status Offline
bat c c++
1 2 3 5 Next ›
Forum Jump: