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-06-25 22:58
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to implement automatically adjusting partition size with a DOS program??? View 11,499 Replies 98
Floor 16 Posted 2004-03-12 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
The following is a quote from Climbing on 2004-3-12 9:32:33:
After thinking carefully, my method is relatively far-fetched and not practically feasible, because there are too many unforeseeable factors. If it is operated on the local machine, it can be defined according to the actual situation, but it is not universal.


Brother Climbing is right! Now we need to realize the universality of F11 system recovery! So it's difficult! Brother, help me think of a way! Thank you! Kneel and thank you!
Floor 17 Posted 2004-03-12 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
In fact, if you are familiar with the partition table, it is not impossible to write a program by yourself. For a big company like Lenovo, it is of course no problem to write such a program.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 18 Posted 2004-03-12 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Climbing, can you help me write one? I can't! 55555555555555, I'm not good at all of these. I'm just okay with the application of some software! The others are no good.
Floor 19 Posted 2004-03-12 00:00 ·  中国 黑龙江 齐齐哈尔 联通
高级用户
★★
Credits 919
Posts 198
Joined 2004-01-17 00:00
22-year member
UID 15706
Gender Male
Status Offline
You can use debug to write the.gho to the very end of the disk. After formatting the partition, just read it out. Because after formatting the partition, your data won't disappear unless you do a low-level format.
Floor 20 Posted 2004-03-12 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I don't have that level either, don't kneel down at all, I can't bear it.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 21 Posted 2004-03-13 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
The following is the speech of moroko on 2004-3-12 11:58:08:
You can use debug to write the.gho to the very end of the disk. After the partition is formatted, just read it out. Because after the partition is formatted, your data will not disappear unless you perform a low-level format.

Thank you! Can you tell me the specific method to implement it, that is, the command format! Thank you, please!!
Floor 22 Posted 2004-03-14 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Why is no one paying attention to me now! Brothers who know, please come out and help solve it. Also, moderator, my problem is very urgent. Can you pin it? Thank you, please!
Floor 23 Posted 2004-03-14 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
Using PQMAGIC 8.02 for the DOS version, everyone is used to doing non-destructive partitioning in the graphical interface. Actually, when you type PQMAGIC /? in DOS, the following parameters are prompted:

/ARG= Read other command-line parameters from a file
/CAS Copy all sectors within the partition
/CBS Check bad sectors
/CEC Check for extra cylinders
/DBG Start debug messages
/ERR= Specify the file for error output
/IFC Skip checking the file system
/LOG= Specify the file for log output
/MUP Allow moving in unknown partitions
/NBS Do not check bad sectors
/NRB Do not reboot after the program ends
/NRF Exit the program if the file exists. (Do not execute the file)
/RAV Read and confirm all disk writes
/SCO Only check syntax (when executing a script)
/UVM Use virtual memory
/WFS Clear the first sector after deleting all partitions

From this parameter "/ARG= Read other command-line parameters from a file", it can be seen that PQMAGIC should have the function of completing non-destructive partitioning at the command line. It is PQMAGIC /ARG= file name, but how exactly should this "file name" be written?
Floor 24 Posted 2004-03-14 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Thanks to friend walu's reminder, following your train of thought, I used Google to search and found that PQMagic does support command-line script operations, but unfortunately, only the Pro version of PQMagic has this function. The ones we usually use are not the Pro version. After searching online for a long time, I only found the graphical interface version of the Pro version (the highest is version 7.0).

I wonder if anyone has the DOS version of Partition Magic Pro. If someone does, can they share it? With it, the owner's problem can be easily solved.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 25 Posted 2004-03-14 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Oh yeah! Thanks! Please! (If there are any) share them!
Floor 26 Posted 2004-03-14 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
Moderator Climbing and everyone, I found PQMAGIC PRO 7.0 FOR DOS version. Its parameter /CMD= can realize automatic lossless partitioning, but I don't know how to write that. Hurry up and study it to benefit brothers. Leave your email, and I'll send it to you!
Floor 27 Posted 2004-03-14 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Please provide the content that needs to be sent to wf6187@126.com.
Floor 28 Posted 2004-03-14 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
I've finally learned a bit about the filename file. Now I know how to write the commands for hiding partitions and splitting partitions, but I don't know how to write the command for creating partitions.

The format is like this (taking hiding the last partition as an example):

PQMAGIC /CMD=88.TXT

The content of 88.TXT is as follows:
select drive 1
select partition last
hide
Floor 29 Posted 2004-03-14 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
Brother mewf, the file has been sent. Let's study it together. Let me know when it's successful. Thanks!
Floor 30 Posted 2004-03-14 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Unable to open (file is corrupted)
Forum Jump: