China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-09-24 23:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » BAT to VBS Problem View 3,307 Replies 18
Floor 16 Posted 2007-03-30 13:42 ·  中国 广东 广州 海珠区 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
Originally posted by bjsh at 2007-3-28 08:09 PM:
Try using quotation marks yourself.

What does it mean??
Give me an example first.
Floor 17 Posted 2007-03-30 21:07 ·  中国 浙江 杭州 华数宽带
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
re axi 兄; That method is really wonderful!!!!!

re flyinspace:
Still don't consider quotes; although it was solved in the end; but there will still be new problems;
Still try the following code吧;


  1. @echo off
  2. if exist tmp.txt del tmp.txt
  3. for /f "tokens=1 delims=" %%a in (test.txt) do set "var=%%a" & call :change
  4. goto exit
  5. :change
  6. set "var=%var:^=^^%"
  7. set "var=%var:>=^>%"
  8. set "var=%var:<=^<%"
  9. set "var=%var:&=^&%"
  10. set "var=%var:|=^|%"
  11. set /p "=%var%" <nul >>tmp.txt
  12. echo. >>tmp.txt
  13. :exit
BJSH posted on: 2007-03-29 18:08
Floor 18 Posted 2007-04-01 22:47 ·  中国 广东 深圳 电信
中级用户
★★
Credits 379
Posts 95
Joined 2003-07-17 00:00
23-year member
UID 7038
Gender Male
Status Offline
You can also use the more method to complete the building - owner's B - to - V solution. This method is amazing! I see that the registry conversion function can also be used :)
Floor 19 Posted 2007-04-01 23:07 ·  中国 广东 汕头 电信
初级用户
Credits 37
Posts 18
Joined 2007-04-01 08:57
19-year member
UID 83600
Gender Male
Status Offline
It's really sweating~~~~~
So amazing, I endorse~~~~~~
Forum Jump: