[問題] cmd %var:0=1% 濾特殊字跳脫問題

看板Windows作者 (這是唉滴)時間10年前 (2016/01/26 02:27), 10年前編輯推噓3(300)
留言3則, 3人參與, 最新討論串1/1
code: set runApp=mSurface=Surface(name=com.anddoes.launcher/com.anddoes.launcher.Launcher) set runApp=%runApp:mSurface=% 問題我想濾到 mSurface=Surface(name= 卡在等號特殊字不知道該怎麼解決, 試過 \ ^ 還是不行 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.239.144.145 ※ 文章網址: https://www.ptt.cc/bbs/Windows/M.1453746428.A.CE8.html

01/26 09:06, , 1F
雙引號?
01/26 09:06, 1F

01/26 10:14, , 2F
Ascii
01/26 10:14, 2F
ascii 不太會用 是把=變成\x61嗎?

01/26 12:47, , 3F
SET "RUNAPP=..."
01/26 12:47, 3F
set "runApp=%runApp:mSurface=Surface(name=0%" 沒達成預期的... ※ 編輯: junktw (36.239.152.213), 01/27/2016 01:03:17
文章代碼(AID): #1MfcZype (Windows)