﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-douhui2002-随笔分类-疑难杂症</title><link>http://www.cppblog.com/douhui2002/category/17521.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 08 Aug 2011 06:59:27 GMT</lastBuildDate><pubDate>Mon, 08 Aug 2011 06:59:27 GMT</pubDate><ttl>60</ttl><item><title>利用DOS指令和EXCEL函数实现文件名的批量修改</title><link>http://www.cppblog.com/douhui2002/archive/2011/08/08/152778.html</link><dc:creator>douhui</dc:creator><author>douhui</author><pubDate>Mon, 08 Aug 2011 05:13:00 GMT</pubDate><guid>http://www.cppblog.com/douhui2002/archive/2011/08/08/152778.html</guid><wfw:comment>http://www.cppblog.com/douhui2002/comments/152778.html</wfw:comment><comments>http://www.cppblog.com/douhui2002/archive/2011/08/08/152778.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/douhui2002/comments/commentRss/152778.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/douhui2002/services/trackbacks/152778.html</trackback:ping><description><![CDATA[用来修改单个文件名的基本dos指令：<br /><br />ren：重命名的命令，也可以用rename；<br />ren file1.txt file2.txt<br />把file1改为file2。<br /><br />用EXCEL来获取修改文件名的指令：<br />1. 输入 <strong>dir /b</strong> 你可以看见当前文件夹目录下面全部文件的列表。<br />输入 <strong>dir /b &gt; rename.xls</strong> 将的列表输出到rename.xls电子表格。<br /><br />2.使用SUBSTITUTE可以来修改文件名中指定的字符。将此公式复制到所有行中。<br /><br />3.<font face="Courier New">CONCATENATE("ren ",A1, " ", B1)。将此公式复制到所有行中。<br /><br />4.复制得到的列，然后拷贝到rename.bat中执行，即可。<br /><br />参考网址：<br /><a href="http://school.zzit.com.cn/OfficeSoft/Excel/20090820/211808.html">http://school.zzit.com.cn/OfficeSoft/Excel/20090820/211808.html</a><br /><a href="http://tech.163.com/06/0427/02/2FMB2EAA000917H3.html">http://tech.163.com/06/0427/02/2FMB2EAA000917H3.html</a><br /><br />涉及到指令的修改方式：<br /><a href="http://blog.sina.com.cn/s/blog_4661a3150100q0if.html">http://blog.sina.com.cn/s/blog_4661a3150100q0if.html</a></font> <img src ="http://www.cppblog.com/douhui2002/aggbug/152778.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/douhui2002/" target="_blank">douhui</a> 2011-08-08 13:13 <a href="http://www.cppblog.com/douhui2002/archive/2011/08/08/152778.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>