中国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-10-26 12:57
47,815 topics / 349,928 posts / today 0 new / 48,288 members
DOS疑难解答 & 问题讨论 (解答室) » What's wrong with this autoexec.bat?
Printable Version  2,602 / 26
Floor16 lianjiang2004 Posted 2007-04-20 22:57
金牌会员 Posts 1,884 Credits 3,946
I tried it and found that your (A: C:) has a problem. Change it to (A: C:).
You're using full-width characters.
Floor17 BWSkyer Posted 2007-04-20 23:00
中级用户 Posts 180 Credits 367 From 重庆
Then can the if exist above still be used to check a drive letter??
Floor18 BWSkyer Posted 2007-04-20 23:03
中级用户 Posts 180 Credits 367 From 重庆
Originally posted by lianjiang2004 at 22:57:
I tried it and found that your (A: C:) has a problem. Change it to (A: C:).
You're using full-width characters.


I tested it myself.. it works..

Then the OP's problem is full-width vs. half-width.. :P
Floor19 terse Posted 2007-04-20 23:08
银牌会员 Posts 946 Credits 2,404
Ah? So that's what it was. Thanks, I'll go try it!
Floor20 terse Posted 2007-04-20 23:41
银牌会员 Posts 946 Credits 2,404
I changed it; the problem is still there! So frustrating!
Floor21 lianjiang2004 Posted 2007-04-20 23:48
金牌会员 Posts 1,884 Credits 3,946
Originally posted by terse at 2007-4-20 23:41:
I changed it; the problem is still there! So frustrating!

Is %ud% still empty?
I tested it and it has a value.
Floor22 lianjiang2004 Posted 2007-04-20 23:49
金牌会员 Posts 1,884 Credits 3,946
Otherwise, upload the related files needed and test it.
Floor23 terse Posted 2007-04-20 23:54
银牌会员 Posts 946 Credits 2,404
Originally posted by lianjiang2004 at 2007-4-20 23:49:
Otherwise, upload the related files needed and test it.

By uploading the related files needed, you mean?
Floor24 0451lym Posted 2007-04-20 23:57
高级用户 Posts 357 Credits 760
%ud% is empty. Why?

No need to test anymore, because this kind of check won't be recognized under the NT family, so give up this kind of checking (it can't be universal)!

You can work around it by using DIRT to get the variable value of the current drive letter!

[ Last edited by 0451lym on 2007-4-20 at 11:59 PM ]
Floor25 terse Posted 2007-04-21 00:08
银牌会员 Posts 946 Credits 2,404
Originally posted by 0451lym at 2007-4-20 23:57:
%ud% is empty. Why?

No need to test anymore, because this kind of check won't be recognized under the NT family, so give up this kind of checking (it can't be universal)!

You can work around it by using DIRT to get the variable value of the current drive letter!

[ Last edited by 0451lym on 2007-4-20 at 11:59 PM ]


This kind of check won't be recognized under the NT family?
I'll just use VOL to check then, or CD> whichever is simpler
Floor26 0451lym Posted 2007-04-21 00:11
高级用户 Posts 357 Credits 760
CD> is simple
Floor27 terse Posted 2007-04-21 02:23
银牌会员 Posts 946 Credits 2,404
Using the following below, OK! I just don't know how to explain it! Who can explain it?
if %comspec%==A:\CONFIG.SYS goto next|set ud=A:
if %comspec%==C:\CONFIG.SYS goto next|set ud=C:
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023