![]() |
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-04 10:07 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Split a TXT file with a batch file |
| Printable Version 833 / 2 |
| Floor1 jifenglang | Posted 2007-04-26 11:08 |
| 新手上路 Posts 1 Credits 4 | |
|
─────────────────── Moderation Record ──────────────────── Handled by: lxmxn Original title: Can a batch file handle something like this Note: Because the title is too vague, it is not convenient for forum searching and management. Please modify the title within three days. Tip: To modify the title, click Edit at the lower right corner of the current post, and after making the changes, press Edit Post. Penalty: Since you are new to the forum, no penalty will be given for the time being; if the title is still not modified after three days, 2 credits will be deducted, as a punishment, and the moderator will forcibly change the title. Please click here to read the forum posting rules or see How To Ask Questions The Smart Way, so as to avoid violating the rules in future discussions. ─────────────────── Moderation Record ──────────────────── If there is a txt file, size 4mb, and now I want to write a batch file to split this txt file into several smaller txt files according to certain conditions. For example, the requirement is that each new txt file be named XXX1.txt .... XXX2.txt... XXX3.txt like this, with each one being 20KB. Can this be done with a batch file? I sincerely ask for an answer, I can't write it! [ Last edited by jifenglang on 2007-5-2 at 07:42 AM ] |
|
| Floor2 Vampire | Posted 2007-04-26 12:05 |
| 初级用户 Posts 78 Credits 176 | |
|
Yes. If you combine a batch file with VBS, it can be done very easily.
|
|
| Floor3 vkill | Posted 2007-04-26 12:23 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |