bat文件怎么生成的(BAT|生成指定编码格式(如utf-8或其它)格式的文件)

首页常识更新时间:2023-04-19 08:28:31

如果用批处理自动生成文件,生成的文件的编码会是什么呢?

如以下用批处理要建立一个html网页文件:

::chcp 65001 echo ^<!doCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 TrANSItional//EN" >more.html echo "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"^> >>more.html echo ^<html xmlns="http://www.w3.org/1999/xhtml"^> >>more.html echo ^<base target="_blank" /^> >>more.html echo ^<head^> >>more.html echo ^<title^>contents^</title^> >>more.html echo ^<link href="../../more.css" rel="stylesheet" type="text/css" /^> >>more.html echo ^<style type=text/css^> >>more.html echo ^</style^>^</head^> >>more.html echo ^<body^>^<div^> >>more.html for /f "tokens=1,2 usebackq delims=."

展开阅读全文
推荐内容
热门内容
热门文章

© 2007-2022 http://www.anhuiqq.cn,All Rights Reserved.