这不是问题,而是跟进这篇文章:[http://ss64.com/nt/syntax-substring.html]。我在该例程中遇到的问题是它在FOR循环中不起作用。所以我联系了其中一位作者,因此#RitchieLawrence#得到了这个子程序的全部功劳:@echooffecho123456789-1-3>strManip.txtecho123456789-2-3>>strManip.txtecho123456789-3-3>>strManip.txtecho123456789-3-4>>strManip.txtecho123456789-3-5>>strManip.txtecho1