![]() |
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-09-06 07:00 |
47,812 topics / 349,914 posts / today 0 new / 48,268 members |
| DOS启动盘 & LOGO技术 (启动盘室) » A small question for everyone! |
| Printable Version 1,484 / 2 |
| Floor1 lws74 | Posted 2003-04-22 00:00 |
| 初级用户 Posts 19 Credits 163 | |
|
I'm just starting to learn DOS, and I ran into a small problem in a batch file that I'd like to ask about.
In DOS's Autoexec.bat, the PATH command is often used. Here's one PATH search command like this: path=c:.;d:.;.. What is the purpose of the two dots at the end of this command? Because I know a single dot is shorthand for the current directory, and two dots are shorthand for the parent directory. If this command tells DOS to search from the root directories of drives C and D, then which parent directory do the two dots represent? |
|
| Floor2 Wengier | Posted 2003-04-23 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
.. does indeed mean the parent folder. If the current location is the root folder, then .. will be ignored and not searched.
|
|
| Floor3 lws74 | Posted 2003-04-23 00:00 |
| 初级用户 Posts 19 Credits 163 | |
|
So that's how it is. Thank you for the moderator's guidance!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |