中国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-02 19:18
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Online Help] Problem of Undefined Variable
Printable Version  2,255 / 19
Floor16 namejm Posted 2006-12-19 02:00
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Just two suggestions regarding the code in your top post:
1. Add a variable delay statement;
2. If the %tmp% path contains spaces, it should be enclosed in quotes.
If you want to assign the return value of findstr to a variable, please post the content of your CheckV.TXT.
Floor17 HUNRYBECKY Posted 2006-12-19 02:04
银牌会员 Posts 442 Credits 1,179
Originally posted by redtek at 2006-12-19 01:56:
Another method:



...



Indeed ingenious. The method of assigning values first is worthy of promotion.
Floor18 HUNRYBECKY Posted 2006-12-19 02:05
银牌会员 Posts 442 Credits 1,179
Originally posted by namejm at 2006-12-19 02:00:
  Two suggestions for the code in the top post:
  1、Add variable delay statements;
  2、If the %tmp% path contains spaces, it should be enclosed in quotes.

  If you want to assign the return value of findstr to a variable..


Thanks for the moderator's standardization. I'll modify it right away.
Floor19 ccwan Posted 2006-12-19 02:08
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
Brother redtek is much taller than me!
Floor20 redtek Posted 2006-12-19 02:17
金牌会员 Posts 1,147 Credits 2,902
Brother ccwan is too modest~ :)
I just didn't follow the thinking of Brother HUNRYBECKY's code in the first floor, and wasn't disturbed by the "original idea", so I used another method~ :)
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023