如果用批处理自动生成文件,生成的文件的编码会是什么呢?
如以下用批处理要建立一个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=."