![]() |
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-12 20:20 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » [Help] What is % used for? |
| Printable Version 696 / 3 |
| Floor1 HKKK | Posted 2003-07-08 00:00 |
| 初级用户 Posts 1 Credits 108 | |
|
Can anyone tell me what the % symbol is used for under DOS? Thanks!
|
|
| Floor2 电吉入侵 | Posted 2003-07-08 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
A variable, for example %cdrom%: it can take you to the CDROM drive letter (you have to set it first)....
|
|
| Floor3 nn5997 | Posted 2003-07-08 00:00 |
| 初级用户 Posts 3 Credits 120 | |
|
If you are executing an external command at >
C>Test 640 480 8 Test --->%0 640 --->%1 480 --->%2 8 ---->%3 and so on |
|
| Floor4 ko20010214 | Posted 2003-07-09 00:00 |
| 版主 Posts 1,628 Credits 7,296 | |
|
% is generally used in DOS commands as the marker for defining variables.
What is enclosed in % is generally a variable name. Also, in batch processing, it is generally used as a formal parameter, together with shift (the displacement command). For details, you can look at posts about batch processing. Or look at the article below: http://newdos.yginfo.net/dosuse.htm#dosbat |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |