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-05 15:04
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » At my wit's end, looking for a batch file to search for a partition with a specified volume label, or asking for advice View 850 Replies 4
Original Poster Posted 2007-08-24 01:24 ·  中国 新疆 塔城地区 电信
中级用户
★★
Credits 354
Posts 83
Joined 2003-03-23 00:00
23-year member
UID 1232
Gender Male
Status Offline
I previously succeeded with the guidance of an expert, but now under the MSDOS7.1 environment it unexpectedly no longer works properly, and I really can't find where the problem is.



This is the batch file code I'm using now



My environment is VPC2007,


I just tested it and found a strange problem:

On the CD, the virtual A: drive, the virtual x, and even when copied to the hard disk, it still cannot run properly,

but if I use Safe Mode at startup, with nothing loaded, then executing the code copied to the hard disk can correctly find the drive letter,


I don't know why this is.

[ Last edited by ww111222 on 2007-8-24 at 01:38 AM ]
Attachments
FIND.rar (5.67 KiB, Downloads: 19)
Floor 2 Posted 2007-08-24 01:29 ·  中国 广西 贵港 电信
初级用户
Credits 23
Posts 10
Joined 2006-12-04 22:13
19-year member
UID 72565
Gender Male
Status Offline
You're still working on your Chinese F11? I think it's better to boot with GRUD4dos. You can set hotkeys, write it into the MBR, and it supports Chinese.
Floor 3 Posted 2007-08-24 01:34 ·  中国 新疆 塔城地区 电信
中级用户
★★
Credits 354
Posts 83
Joined 2003-03-23 00:00
23-year member
UID 1232
Gender Male
Status Offline
I'm running it under hhwwll's Super Chinese MS-DOS7.10 boot disk:

http://www.cn-dos.net/forum/viewthread.php?tid=17237&fpage=1
Floor 4 Posted 2007-08-24 01:35 ·  中国 新疆 塔城地区 电信
中级用户
★★
Credits 354
Posts 83
Joined 2003-03-23 00:00
23-year member
UID 1232
Gender Male
Status Offline
Originally posted by zjq20032006 at 2007-8-24 01:29 AM:
You're still working on your Chinese F11? I think it's better to boot with GRUD4dos. You can set hotkeys, write it into the MBR, and it supports Chinese.



Yes, I'm also using GRUB4DOS now,


I'm no longer using Nongchaoer's one,


but there is still one problem that hasn't been solved,

namely finding the drive letter for a specified volume label,
Floor 5 Posted 2007-08-24 22:02 ·  中国 新疆 塔城地区 电信
中级用户
★★
Credits 354
Posts 83
Joined 2003-03-23 00:00
23-year member
UID 1232
Gender Male
Status Offline
Finally figured it out. Turns out there are both find.com and find.exe; using the .exe one works OK.
Forum Jump: