[轉]DOS特殊字符轉義方法


http://www.robvanderwoude.com/escapechars.php

期望得到的字符
轉義后字符
說明
% %% May not always be required in doublequoted strings, just try
^ ^^ May not always be required in doublequoted strings, but it won't hurt
& ^&
<</code> ^<</code>
> ^>
| ^|
' ^' Required only in the FOR /F "subject" (i.e. between the parenthesis),unless backq is used
` ^` Required only in the FOR /F "subject" (i.e. between the parenthesis), ifbackq is used
, ^, Required only in the FOR /F"subject" (i.e. between the parenthesis), even in doublequoted strings
; ^;
= ^=
( ^(
) ^)
! ^^! Required only when delayed variable expansionis active
\ \\ Required only in the regex pattern of FINDSTR
[ \[
] \]
" \"


原文摘錄自: DOS Escape Characters


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM