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-06-30 08:35
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to call commands from any directory?? View 761 Replies 5
Original Poster Posted 2006-05-06 13:18 ·  中国 广东 中山 电信
初级用户
Credits 32
Posts 9
Joined 2006-03-26 09:55
20-year member
UID 52798
Gender Male
Status Offline
I installed the full version of MSDOS7.1, and while using it I found that no matter which directory I'm in, I can use any built-in program.
For example, the EDIT that comes with MSDOS is originally under H:\DOS, but I can still directly type EDIT in any directory to start the program, even though there is no EDIT file in that directory.
But the WIN98 boot disk I made myself can't do that. I have to enter the directory containing that program file before I can start it.
What tool is used to make this function work? Can you introduce in detail how to use it??
Floor 2 Posted 2006-05-06 13:33 ·  中国 上海 浦东新区 电信
中级用户
★★
论坛第一菜鸟
Credits 361
Posts 166
Joined 2006-04-15 13:23
20-year member
UID 53870
Status Offline
Set it with the set command
set path=specific directory (can be multiple, separated by semicolons)
dos will look for commands in the specific directories you set (searching in order)
After reading this thread, you'll probably know how to do it!

[ Last edited by xjmxjm1234 on 2006-5-6 at 13:36 ]
Diskette Operating System
Floor 3 Posted 2006-05-07 20:31 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Floor 4 Posted 2006-05-11 16:22 ·  中国 广东 中山 电信
初级用户
Credits 32
Posts 9
Joined 2006-03-26 09:55
20-year member
UID 52798
Gender Male
Status Offline
Originally posted by xjmxjm1234 at 2006-5-6 13:33:
Set it with the set command
set path=specific directory (can be multiple, separated by semicolons)
dos will look for commands in the specific directories you set (searching in order)


So that's how it works!!
Thank you so much!!:D
Floor 5 Posted 2006-05-11 18:59 ·  中国 上海 浦东新区 电信
中级用户
★★
论坛第一菜鸟
Credits 361
Posts 166
Joined 2006-04-15 13:23
20-year member
UID 53870
Status Offline
No need to thank me, this is a place for everyone to learn, right?
Diskette Operating System
Floor 6 Posted 2006-05-11 22:56 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Type path and have a look~~
Forum Jump: