[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[技术讨论] 自制可打印字符ansi编码表

  1. Set fso = CreateObject("scripting.filesystemobject")
  2. myarray = Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f")
  3. vbstr = "编码(10)" & Chr(9) & "编码(16)" & Chr(9) & "字符" & vbCrLf
  4. vbstr = vbstr & "8" & Chr(9) & "0x08" & Chr(9) & "[" & Chr(8) & "]" & vbCrLf
  5. vbstr = vbstr & "9" & Chr(9) & "0x09" & Chr(9) & "[" & Chr(9) & "]" & vbCrLf
  6. For i = 32 To 126
  7.   a = myarray(Int(i / 16)): b = myarray(i - a * 16)
  8.   vbstr = vbstr & i & Chr(9) & "0x" & a & b & Chr(9) & "[" & Chr(i) & "]" & vbCrLf
  9. Next
  10. fso.OpenTextFile("ansi.txt", 2, 1).Write vbstr
  11. Set fso = Nothing
复制代码
***共同提高***

Right(1000 + i, 3)
这样也行啊...

TOP

vbstr = vbstr & Right(1000 + i, 3) & vbTab & "0x" & Hex(i) & vbTab & "[" & Chr(i) & "]" & vbCrLf
1

评分人数

TOP

知道看生成的ansi.txt就可以了
***共同提高***

TOP

不知怎么用,。。。。
nsgdsb

TOP

返回列表