China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-22 19:27
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » A small question for everyone! View 1,410 Replies 2
Original Poster Posted 2003-04-22 00:00 ·  中国 广西 玉林 北流市 联通
初级用户
Credits 163
Posts 19
Joined 2003-03-19 00:00
23-year member
UID 1191
Gender Male
Status Offline
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?
Floor 2 Posted 2003-04-23 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
.. does indeed mean the parent folder. If the current location is the root folder, then .. will be ignored and not searched.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-04-23 00:00 ·  中国 广西 玉林 北流市 联通
初级用户
Credits 163
Posts 19
Joined 2003-03-19 00:00
23-year member
UID 1191
Gender Male
Status Offline
So that's how it is. Thank you for the moderator's guidance!
Forum Jump: