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-07-02 18:15
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Help] How to get the current hard disk drive letter and assign it to a variable in a specified format? View 1,720 Replies 3
Original Poster Posted 2010-08-09 15:07 ·  中国 广东 东莞 联通
银牌会员
★★★
Credits 1,284
Posts 538
Joined 2002-11-02 00:00
23-year member
UID 129
Gender Male
Status Offline
In the CMD command prompt, run the following command to get the drive letters of the hard disk:

fsutil fsinfo drives



Drives: C:\ D:\ E:\ F:\ G:\ H:\


How to set the variable drives=C:;D:;E:;F:;G:;H:
Floor 2 Posted 2010-08-09 15:21 ·  中国 广东 东莞 联通
银牌会员
★★★
Credits 1,284
Posts 538
Joined 2002-11-02 00:00
23-year member
UID 129
Gender Male
Status Offline
Please tell the moderators which section this post should be more appropriate in, thank you!
Floor 3 Posted 2010-08-09 17:27 ·  中国 上海 杨浦区 电信
管理员
★★
Credits 389
Posts 198
Joined 2008-09-23 12:00
17-year member
UID 126405
Gender Male
Status Offline
It's very simple. Post the problem in the corresponding section according to the system environment.

Take your problem as an example. You know this is an issue under the CMD command prompt, that is, in the Windows environment, so post it in the "Comprehensive Discussion Area of Other Operating Systems" or the "Batch Processing" section.

Generally speaking, if it's a problem about the use of a single command and doesn't involve skills in batch processing writing or the use of batch processing - specific statements, it's more appropriate to post it in the "Comprehensive Discussion Area of Other Operating Systems".

http://www.cn-dos.net/forum/viewthread.php?tid=45474#pid318961
Floor 4 Posted 2010-08-15 13:17 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Agreed. If it's not a DOS-related issue, don't post it in this section.
Forum Jump: