中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-11 07:51
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Interface-free version Batch file renaming beat1.3 [20061214] update
Printable Version  12,943 / 63
Floor1 a9319751 Posted 2006-12-05 04:36
中级用户 Posts 170 Credits 439
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 ]

Attachments
批量文件改名.rar (2.46 KiB)
pren.rar (1.07 KiB)
Floor2 junyee Posted 2006-12-05 11:05
中级用户 Posts 112 Credits 253
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.).
Floor3 a9319751 Posted 2006-12-06 04:02
中级用户 Posts 170 Credits 439
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
Floor4 nanoking Posted 2006-12-06 12:03
新手上路 Posts 3 Credits 5
The version is updated quickly, supportive!
Floor5 yqadsq1314 Posted 2006-12-06 19:34
初级用户 Posts 26 Credits 30
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.
Floor6 a9319751 Posted 2006-12-07 03:25
中级用户 Posts 170 Credits 439
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
Floor7 a9319751 Posted 2006-12-07 03:26
中级用户 Posts 170 Credits 439
Originally posted by yqadsq1314 at 2006-12-6 19:34:
What does "set "oldname=%oldname:"=%" mean?


Remove the quotation marks ("") from the variable oldname
Floor8 fastrun Posted 2006-12-14 02:27
初级用户 Posts 24 Credits 46
Floor9 无奈何 Posted 2006-12-14 03:42
荣誉版主 Posts 356 Credits 1,338
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.
Floor10 a9319751 Posted 2006-12-14 03:48
中级用户 Posts 170 Credits 439
Thanks to the moderator for guidance, will improve immediately
Floor11 linjie Posted 2006-12-14 04:46
新手上路 Posts 6 Credits 14
It works very well. It would be even more perfect if we could choose "Change within the currently opened folder".
Floor12 a9319751 Posted 2006-12-14 04:51
中级用户 Posts 170 Credits 439
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?
Floor13 HUNRYBECKY Posted 2006-12-14 04:55
银牌会员 Posts 442 Credits 1,179
Well written. Plus points.
Floor14 HUNRYBECKY Posted 2006-12-14 04:56
银牌会员 Posts 442 Credits 1,179
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.
Floor15 a9319751 Posted 2006-12-14 05:01
中级用户 Posts 170 Credits 439
1 2 3 45  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023