![]() |
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-11-20 09:07 |
47,820 topics / 349,938 posts / today 0 new / 48,297 members |
| DOS学习入门 & 精彩文章 (教学室) » Seek help, create a folder in the last drive letter |
| Printable Version 6,112 / 27 |
| Floor16 Jnwei1202 | Posted 2006-09-28 22:23 |
| 初级用户 Posts 33 Credits 197 | |
|
Above the building
Can it be used if added? For example C: D: E: F: FAT32 NTFS NTFS FAT32 How are the drive letters arranged after loading partitions under DOS? Is the last drive letter the last partition? If the last partition is in NTFS format, can the loaded NTFS driver write data to the NTFS format? I know that OMNIFS can write data to the NTFS format, but I don't know how to find out how many partitions there are and set it as a variable %disk% omnifs mkdir 1.%disk% |
|
| Floor17 fastslz | Posted 2006-09-28 23:08 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
Posting a piece of code from my own DOS maintenance disk, it's my treasure
![]() Using the general method for DOS and CMD with gdisk and gdisk32, no need to load the annoying NTFS driver. Gdisk Version 8.3 |
|
| Floor18 fastslz | Posted 2006-09-28 23:31 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
If considering that your boot disk is multi-purpose, some hard drives having more than 2 primary partition codes are incorrect. Modify it yourself.
Take floor 17 as Scheme 1. FIND /i /n "PRIMARY" Gdisk.TXT|FIND /i "" >nul if not errorlevel 1 ECHO There are more than 2 primary partitions on your first hard drive. GOTO Scheme 2 :Scheme 2 .........Don't repeat, weigh and modify by yourself. If you think this method is good, give me a rating哦 ![]() [ Last edited by fastslz on 2006-9-28 at 23:33 ] |
|
| Floor19 jieok3375 | Posted 2006-09-30 04:09 |
| 中级用户 Posts 130 Credits 282 From 广东 | |
|
Learned something, thanks!
|
|
| Floor20 jieok3375 | Posted 2006-09-30 04:09 |
| 中级用户 Posts 130 Credits 282 From 广东 | |
|
Learning
|
|
| Floor21 fastslz | Posted 2006-09-30 05:59 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
This is also the best solution for dealing with DOS and Windows! Under the native Windows situation of a single hard drive, the system drive letters are exactly the same!
|
|
| Floor22 lizaoyou | Posted 2007-01-25 08:31 |
| 中级用户 Posts 85 Credits 210 From 广东广州 | |
|
A bit late, learning...
Referencing the idea of brother redtek on floor 6, the code compatible with pure DOS mode is as follows: @ECHO OFF FOR %%i IN (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) DO IF EXIST %%i:\nul SET last=%%i: MD %last%\tmp (Testing environment: winXPsp2_CMD, MSDOS7.10) Problems under pure DOS: 1. The IF command cannot directly test the existence of a drive letter, which can be achieved by testing an empty directory (nul); is there a better way? 2. The FOR command also cannot use "GOTO :EOF" to exit the loop. Asking brother redtek and everyone, is there any method to achieve "exit the FOR when the condition is met"? wait... |
|
| Floor23 jckjuc | Posted 2007-02-01 03:27 |
| 初级用户 Posts 23 Credits 48 | |
|
Hehe. Everyone is so enthusiastic. Next time I have questions, I will trouble you all too. There are really many things to learn from the experts.
|
|
| Floor24 wlt2007 | Posted 2007-02-11 13:52 |
| 初级用户 Posts 20 Credits 42 | |
|
Didn't understand: Isn't it just creating a folder in a partition? MD?
What is the last partition? Still don't understand? In Windows, it's generally the first-come-first-served, arranged by letter index. Is the last partition the one arranged at the end? In the boot detection in DOS, the last one? ——All exclude unrecognizable and unwritable partitions. If so: Let's raise a question——Today you can create a directory in the last partition; if the drive letter is changed tomorrow or the day after tomorrow, will it still be in the last partition? We question its practical value! If not: The LZ's system has Linux, and the above said are all nonsense. |
|
| Floor25 0451lym | Posted 2007-02-11 19:06 |
| 高级用户 Posts 357 Credits 760 | |
|
Hehe, still this problem is annoying.
Partition separator conversion is okay. One method: when booting the system, directly convert it into the analysis file of the partition separator. Then call it in the way of 1.1: 1.2: 1.3: 1.4:......) to judge the last partition separator of the first hard disk, then convert it into a drive letter, and MD to establish. Or make a self-extracting empty folder package, copy it over and release it automatically! The second method is basically similar, so I won't go into details! |
|
| Floor26 0451lym | Posted 2007-02-11 19:12 |
| 高级用户 Posts 357 Credits 760 | |
|
If you want to know more, please analyze the works of XUSEN. The time to start the machine and analyze the partition separator is about 30 seconds!
Or take a look at some posts from the recent discussion about partition drive letter conversion between me and llztt1! [ Last edited by 0451lym on 2007-2-11 at 07:14 PM ] |
|
| Floor27 xsjlai | Posted 2007-02-20 09:12 |
| 新手上路 Posts 7 Credits 16 | |
| Floor28 lhteee | Posted 2007-02-20 14:15 |
| 中级用户 Posts 59 Credits 223 | |
|
Where can I find Gdisk8.3???
|
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |