例如有一个log文件的内容是:- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
- <title> 批处理之家 批处理_BAT脚本_PowerShell_VBS_CMD_DOS_Perl_Python - Powered by Discuz!</title>
- <meta name="keywords" content="批处理,批处理命令,批处理教程,BAT,BAT脚本,CMD,DOS,VBS,VBScript,JScript,JavaScript,Perl,Python,PowerShell" />
- <meta name="description" content=" 批处理之家 批处理之家是中国最实用的批处理论坛.由批处理,DOS,VBS,JScript,JavaScript,Perl,Python,PowerShell等版块组成.涵盖批处理删除文件,DOS命令大全,CMD命令大全,清理系统垃圾bat,VBS整人代码破解等实用信息.众多脚本高手帮助你及时解决各种问题. - Discuz! Board" />
- <meta name="generator" content="Discuz! 7.2" />
- <meta name="author" content="Discuz! Team and Comsenz UI Team" />
- <meta name="copyright" content="2001-2009 Comsenz Inc." />
- <meta name="MSSmartTagsPreventParsing" content="True" />
- <meta http-equiv="MSThemeCompatible" content="Yes" />
- <meta http-equiv="x-ua-compatible" content="ie=7" />
- <link rel="archives" title="批处理之家" href="http://www.bathome.net/archiver/" />
- <link rel="stylesheet" type="text/css" href="forumdata/cache/style_1_common.css?VK8" /><link rel="stylesheet" type="text/css" href="forumdata/cache/scriptstyle_1_search.css?VK8" />
- <script type="text/javascript">var STYLEID = '1', IMGDIR = 'images/default', VERHASH = 'VK8', charset = 'gbk', discuz_uid = 72104, cookiedomain = '', cookiepath = '/', attackevasive = '0', disallowfloat = 'newthread|reply|viewvote|tradeorder|activity|debate', creditnotice = '', gid = 0, fid = parseInt('0'), tid = parseInt('0')</script>
- <script src="forumdata/cache/common.js?VK8" type="text/javascript"></script>
- </head>
复制代码 是否可以截取- <meta name="author" content="Discuz! Team and Comsenz UI Team" />
- <meta name="copyright" content="2001-2009 Comsenz Inc." />
- <meta name="MSSmartTagsPreventParsing" content="True" />
复制代码 这三条内容到另外一个文本文档内?
可以只用批处理吗?不用PowerShell。用PowerShell会导致乱码。 |