中国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-08-03 19:27
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » How to get the path where the current batch file is located in batch processing?
Printable Version  2,711 / 17
Floor16 Climbing Posted 2007-03-17 03:48
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
Of course, it is easy to implement in the CMD environment, but the above schemes are all not feasible in pure DOS.

I remember there is a third-party command fpath.exe running in a pure DOS environment (it should be a product of the WBAT author). Through this program, you can find the complete path of a certain command (search according to the execution order of DOS commands, and the first one found is the matching product), and then cooperate with lmod and other simple processing.
Floor17 llztt1 Posted 2007-03-17 09:41
中级用户 Posts 94 Credits 214
Climb is really powerful! I thought few people knew about LMOD, (I accidentally found it from the BART disk), turns out I'm the one who's ignorant
Floor18 Climbing Posted 2007-03-17 11:55
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
Oh, I've been using lmod for many years.
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023