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-08-13 03:52
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How to detect the time? Also asking for help with a drive-letter mapping tool... View 1,422 Replies 3
Original Poster Posted 2003-06-24 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
Question for everyone:
1. Does anyone have software that can map a folder on a CD as a drive, so that if I type drive_letter: it goes straight to that folder.
2. In a *.bat, how can I set it so that if no key is pressed within a specified time it jumps...
3. Are there any articles introducing return values and variables?
4. What does >nul mean?
5. How can I get the current drive letter as a variable? (That is, how do I know what drive I'm currently on? Don't tell me to use my eyes, hehe)

Many thanks!






欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 2 Posted 2003-06-24 00:00 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
1. You can use DOS's built-in SUBST
Usage: SUBST folder path
Remove it with SUBST drive_letter /D
2. Use DOS's built-in CHOICE
For details on CHOICE, enter CHOICE /? under DOS
3. Don't know, there probably are....
4. >nul means the output is not displayed. In other words, the output content is not shown on the screen. The NUL after it can also be replaced with something else.
For example, AA will store the output result in the AA file.

5. Figure it out yourself
QQ:366840202
http://chenall.net
Floor 3 Posted 2003-06-24 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
No, that won't work. subst can only map hard disks; mapping a CD gives an error.....
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 4 Posted 2003-10-29 00:00 ·  中国 北京 263网络通信电信数据中心
中级用户
Credits 224
Posts 31
Joined 2003-09-28 00:00
22-year member
UID 10454
Gender Male
Status Offline
Find another version!
Forum Jump: