我搞了一个不完善的P,详见附件--测试用的exe已在temp中
问题和目的
转换为txt后在temp下有
1.temp\卫斯理001\0\*.txt(20份txt文件如:01.txt,02.txt...)
2.temp\卫斯理002\0\*.txt(15份txt文件如:01.txt,02.txt...)
3.temp\卫斯理003\0\*.txt(12份txt文件如:01.txt,02.txt...)
现在要
一.将temp\卫斯理001\0\下的20份txt合成为一份"卫斯理001.txt"到当前目录下新建的"卫斯理"中去
将temp\卫斯理002\0\下的15份txt合成为一份"卫斯理002.txt"到当前目录下新建的"卫斯理"中去
将temp\卫斯理003\0\下的12份txt合成为一份"卫斯理003.txt"到当前目录下新建的"卫斯理"中去
二.将temp\《六爻阴阳经》\《六爻阴阳经》.txt这种直接copy到当前目录下《六爻阴阳经》.txt
该如何改写这个P,希不吝赐教!
附件
Last edited by qingfushuan on 2008-7-5 at 12:45 PM ]
I've made an incomplete P, see the attachment -- the test exe is already in temp.
Problems and purposes
After converting to txt, in temp there are
1. temp\We斯理001\0\*.txt (20 txt files such as 01.txt, 02.txt...)
2. temp\We斯理002\0\*.txt (15 txt files such as 01.txt, 02.txt...)
3. temp\We斯理003\0\*.txt (12 txt files such as 01.txt, 02.txt...)
Now need to
I. Combine the 20 txt files under temp\We斯理001\0\ into one "We斯理001.txt" into the newly created "We斯理" in the current directory
Combine the 15 txt files under temp\We斯理002\0\ into one "We斯理002.txt" into the newly created "We斯理" in the current directory
Combine the 12 txt files under temp\We斯理003\0\ into one "We斯理003.txt" into the newly created "We斯理" in the current directory
II. Directly copy temp\《Liu Yao Yin Yang Jing》\《Liu Yao Yin Yang Jing》.txt to "《Liu Yao Yin Yang Jing》.txt" in the current directory
How to rewrite this P, please do not sting to teach!
Attachment
Last edited by qingfushuan on 2008-7-5 at 12:45 PM ]