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-09-24 19:16
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Attention] Batch Processing Diagnosis Special Room View 18,454 Replies 172
Floor 46 Posted 2003-05-30 00:00 ·  中国 福建 厦门 教育网
初级用户
Credits 218
Posts 26
Joined 2003-05-10 00:00
23-year member
UID 1973
Gender Male
Status Offline
Floor 47 Posted 2003-05-30 00:00 ·  中国 湖北 武汉 江夏区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 48 Posted 2003-05-30 00:00 ·  中国 福建 厦门 教育网
初级用户
Credits 218
Posts 26
Joined 2003-05-10 00:00
23-year member
UID 1973
Gender Male
Status Offline
Floor 49 Posted 2003-05-30 00:00 ·  中国 湖北 武汉 江夏区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 50 Posted 2003-05-30 00:00 ·  中国 福建 厦门 教育网
初级用户
Credits 218
Posts 26
Joined 2003-05-10 00:00
23-year member
UID 1973
Gender Male
Status Offline
Floor 51 Posted 2003-05-30 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
You can create a virtual drive, copy these files there and execute them there; the steps can be completed in the batch commands.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 52 Posted 2003-05-30 00:00 ·  中国 福建 厦门 教育网
初级用户
Credits 218
Posts 26
Joined 2003-05-10 00:00
23-year member
UID 1973
Gender Male
Status Offline
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?
Floor 53 Posted 2003-05-30 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
You can specify any path,
but after the batch command is finished it only enters one path.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 54 Posted 2003-05-30 00:00 ·  中国 福建 厦门 教育网
初级用户
Credits 218
Posts 26
Joined 2003-05-10 00:00
23-year member
UID 1973
Gender Male
Status Offline
But on other drive letters I can directly execute programs under c:
What makes this possible?
Floor 55 Posted 2003-05-30 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
No way.
You can execute programs on drive c while on drive d?
And c is a physical drive?
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 56 Posted 2003-05-30 00:00 ·  中国 福建 厦门 教育网
初级用户
Credits 218
Posts 26
Joined 2003-05-10 00:00
23-year member
UID 1973
Gender Male
Status Offline
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!!
Floor 57 Posted 2003-05-31 00:00 ·  中国 广东 广州 神州在线
初级用户
★★
香蕉术士
Credits 317
Posts 52
Joined 2003-05-18 12:00
23-year member
UID 2231
Gender Male
Status Offline
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.

永远支持永远支持
Floor 58 Posted 2003-05-31 00:00 ·  中国 河北 石家庄 联通
初级用户
Credits 198
Posts 28
Joined 2003-05-03 00:00
23-year member
UID 1833
Gender Male
Status Offline
In the line call w.bat box @text.bat:find, what is box? What does this line do?
Floor 59 Posted 2003-05-31 00:00 ·  中国 湖北 武汉 蔡甸区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
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.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 60 Posted 2003-06-01 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
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.
Wengier - 新DOS时代

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

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

Forum Jump: