中国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-10-24 11:42
47,815 topics / 349,928 posts / today 0 new / 48,288 members
DOS疑难解答 & 问题讨论 (解答室) » [Help] How to get the current hard disk drive letter and assign it to a variable in a specified format?
Printable Version  2,063 / 3
Floor1 chishingchan Posted 2010-08-09 15:07
银牌会员 Posts 538 Credits 1,284
In the CMD command prompt, run the following command to get the drive letters of the hard disk:




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


How to set the variable drives=C:;D:;E:;F:;G:;H:
Floor2 chishingchan Posted 2010-08-09 15:21
银牌会员 Posts 538 Credits 1,284
Please tell the moderators which section this post should be more appropriate in, thank you!
Floor3 DOSroot Posted 2010-08-09 17:27
管理员 Posts 198 Credits 389
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
Floor4 HAT Posted 2010-08-15 13:17
版主 Posts 5,017 Credits 9,023
Agreed. If it's not a DOS-related issue, don't post it in this section.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023