中国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 17:11
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Attention] Batch Processing Diagnosis Special Room
Printable Version  17,406 / 172
Floor46 Nihlathak Posted 2003-05-30 00:00
初级用户 Posts 26 Credits 218
Floor47 如是大师 Posted 2003-05-30 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Floor48 Nihlathak Posted 2003-05-30 00:00
初级用户 Posts 26 Credits 218
Floor49 如是大师 Posted 2003-05-30 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Floor50 Nihlathak Posted 2003-05-30 00:00
初级用户 Posts 26 Credits 218
Floor51 如是大师 Posted 2003-05-30 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
You can create a virtual drive, copy these files there and execute them there; the steps can be completed in the batch commands.
Floor52 Nihlathak Posted 2003-05-30 00:00
初级用户 Posts 26 Credits 218
But my classmate just wrote a simple autoexec himself, then put a path in it and it worked.
Since the admin's path can specify a: and c:, why can't it specify more paths?
Floor53 如是大师 Posted 2003-05-30 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
You can specify any path,
but after the batch command is finished it only enters one path.
Floor54 Nihlathak Posted 2003-05-30 00:00
初级用户 Posts 26 Credits 218
But on other drive letters I can directly execute programs under c:
What makes this possible?
Floor55 如是大师 Posted 2003-05-30 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
No way.
You can execute programs on drive c while on drive d?
And c is a physical drive?
Floor56 Nihlathak Posted 2003-05-30 00:00
初级用户 Posts 26 Credits 218
Yeah, the problem is solved now.
I changed the path after
SET TMP=%RAMDRIVE%\TEMP
SET TEMP=%RAMDRIVE%\TEMP
PATH=%RAMDRIVE%.;%RAMDRIVE%\SYSTEM
and now no matter where I am I can run the stuff in those two folders.

But why exactly?
I still don't understand!!
Floor57 我爱DOS Posted 2003-05-31 00:00
初级用户 Posts 52 Credits 317
In batch processing, that % thing has always been something I don't understand. I'd appreciate everyone's guidance.
What are %1 through %9? I've never seen them marked in a .BAT file.

Floor58 龙卷风 Posted 2003-05-31 00:00
初级用户 Posts 28 Credits 198
In the line call w.bat box @text.bat:find, what is box? What does this line do?
Floor59 如是大师 Posted 2003-05-31 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
The following is quoted from 我爱dos on 2003-5-31 14:35:00:
In batch processing, that % thing has always been something I don't understand. I'd appreciate everyone's guidance.
What are %1 through %9? I've never seen them marked in a .BAT file.



This is a variable set by DOS, which makes batch execution of bat files easier.
Floor60 Wengier Posted 2003-06-01 00:00
系统支持 Posts 10,521 Credits 27,736
The following is quoted from nihlathak on 2003-5-30 19:50:47:
Yeah, the problem is solved now.
I changed the path after
SET TMP=%RAMDRIVE%\TEMP
SET TEMP=%RAMDRIVE%\TEMP
PATH=%RAMDRIVE%.;%RAMDRIVE%\SYSTEM
and now no matter where I am I can run the stuff in those two folders.

But why exactly?
I still don't understand!!


That's because DOS automatically searches for programs in all the paths specified in PATH.
Prev  1 2 3 4 5 6 712  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023