中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-03 23:46
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » BAT to VBS Problem
Printable Version  2,962 / 18
Floor16 flyinspace Posted 2007-03-30 13:42
银牌会员 Posts 517 Credits 1,206
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.
Floor17 bjsh Posted 2007-03-30 21:07
银牌会员 Posts 621 Credits 2,000
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
Floor18 peterdocter Posted 2007-04-01 22:47
中级用户 Posts 95 Credits 379
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 :)
Floor19 wuwuwuming Posted 2007-04-01 23:07
初级用户 Posts 18 Credits 37
It's really sweating~~~~~
So amazing, I endorse~~~~~~
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023