麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 編程 > BAT > 正文

批處理生成幾乎任何字符,包括Tab

2020-07-26 20:11:44
字體:
供稿:網(wǎng)友

One of my early posts on DosTips was a :chr routine that could convert a number into the corresponding character. The final code that appears near the end of the thread works really well, and is fast, but nearly all the characters must be embedded in the script. The TAB character in particular can be problematic, especially when trying to post the code on a forum site.

There is the undocumented %=ExitCodeAscii% dynamic variable that converts the most recent error code (from EXIT, not EXIT /B), but it is limited to codes between 32 and 126.

I had never seen a native method to generate a TAB character that works on all Windows versions - until now

I recently ran across this FORFILES documentation gem at SS64.COM:

復(fù)制代碼 代碼如下:

To include special characters in the command line, use the hex code for the character in 0xHH format (ex. 0x09 is theTAB character, 0x22 is the double quote " character.)

Eureeka :idea: - The following simple printHex routine can generate any byte code value except 0x00 (nul), 0x0A (newline), and 0x0D (carriage return). 8)

@echo offsetlocal::Define a Linefeed variableset LF=^::above 2 blank lines are critical - do not remove.::Create a TAB variablecall :hexprint "0x09" TAB::Print a string with encoded TABscall :hexprint "A0x09B0x09C"::Create a string variable with encoded TABscall :hexprint "A0x09B0x09C" varset varexit /b:hexPrint string [rtnVar] for /f eol^=^%LF%%LF%^ delims^= %%A in (  'forfiles /p "%~dp0." /m "%~nx0" /c "cmd /c echo(%~1"' ) do if "%~2" neq "" (set %~2=%%A) else echo(%%Aexit /b

I'll be playing Native American style flutes at a retreat in the Blue Ridge Mountains of Virginia for the next 4 days :D , without computer access :|
I wanted to post this before I left.

Enjoy the code, while I enjoy the crisp fall air. :)

Dave Benham

發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 中文字幕综合在线观看 | 成人三级电影网 | 美女视频大全网站免费 | 色999国产 | 美国一级毛片片aa久久综合 | 91嫩草丨国产丨精品入口 | 精品人成 | 久久久久久久网站 | 免费观看一级欧美大 | 国产羞羞视频在线观看免费应用 | 原来神马影院手机版免费 | 中国杭州少妇xxxx做受 | 成人小视频在线播放 | 国产乱淫a∨片免费观看 | 欧美一级做一级爱a做片性 91在线视频观看 | 成人精品免费在线观看 | 91精品国产综合久久婷婷香蕉 | 在线观看免费精品 | 欧美日韩视频在线播放 | 亚洲一区成人在线 | 欧美a在线观看 | 免费国产在线视频 | www.9191.com | 一区二区免费网站 | 国产妞干网 | 久草在线视频新 | 国产精品视频一区二区三区四区国 | 成人男女视频 | 美国一级毛片片aa久久综合 | 日本a∨精品中文字幕在线 被啪羞羞视频在线观看 | 国产精选电影免费在线观看 | 人人做人人看 | 国产一级免费在线视频 | 国产91精品亚洲精品日韩已满 | 亚洲国产成人久久成人52 | 免费观看亚洲视频 | 国产在线播放一区二区 | 久草在线观看福利 | 成人精品一区二区 | 国产精品久久久久久久av三级 | av电影免费在线看 |