VBS实现全角字符转半角字符

标签: , , , ,

既然有《VBS实现半角字符转全角字符》,当然也有VBS实现全角字符转半角字符。

url = "http://demon.tw"
WScript.Echo url
WScript.Echo Full2Half(url)

Function Full2Half(ByVal s)
    'By Demon
    'https://demon.tw
    Dim i
    For i = &HFF01 To &HFF7E
        s = Replace(s, ChrW(i), ChrW(i - &HFEE0))
    Next
    Full2Half = s
End Function
赞赏

微信赞赏支付宝赞赏

随机文章:

  1. VBS调用IE对象直接打印网页
  2. PTMaster,新的PT流量作弊工具?
  3. Unable to find the socket transport "ssl" – did you forget to enable it when you configured PHP?
  4. VBS调用WMI遍历搜索硬盘文件并计数
  5. WinImage 8.50注册码

留下回复