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 21:20
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to implement automatically adjusting partition size with a DOS program??? View 11,496 Replies 98
Floor 46 Posted 2004-03-15 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
I have sent it to your two email boxes again.
Floor 47 Posted 2004-03-15 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
The email has been received and is being tested.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 48 Posted 2004-03-15 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
Moderator, hello! How is the test going? Can you help me improve my auto-adjusting script?
Floor 49 Posted 2004-03-15 00:00 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 50 Posted 2004-03-15 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Thanks everyone! Since there are two of us using the internet here! She uses it during the day and I use it at night, so please forgive me! I'm late! Thank you all for helping me solve this problem! Also, can you help write about how to test the used space of the system disk (test the used size of the system disk to allocate the size for the backup partition to be rebuilt, the purpose is to not waste space)
Floor 51 Posted 2004-03-15 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Also, can it not display the pq interface during execution! Display the interface we set ourselves?
Floor 52 Posted 2004-03-15 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
Moderator, please work harder to improve your first script. Could it be that there's a bug in PQ7.0? It would be best if you could try the professional version of PQ8.0.
Floor 53 Posted 2004-03-15 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 really can't find out what's wrong with the program written in the first script. I followed the commands in the pmscript.pdf exactly, but it just gives an error when executing. This might need to ask PowerQuest's technical support.

In addition, even though I claim to be a moderator, actually I'm not. Even if I were, I should be removed by the W administrator, heh heh
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 54 Posted 2004-03-15 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
By the way! I wonder if the ordinary DOS version of pq8 has these functions!
/ARG=
I don't know if this parameter is the same as /cmd=! If it's the same, let's try pq8.
Floor 55 Posted 2004-03-15 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Floor 56 Posted 2004-03-15 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 have tried it. The ordinary PQ8 version does not support script operations. Only the Pro version of PQ has this function, that is, there is the /CMD parameter. The /ARG parameter is used to specify command-line parameters. That is to say, except for the /ARG parameter, other parameters can be put into a file and then referenced by the /ARG parameter. This is designed to prevent the command-line parameters from being too long and exceeding the maximum limit.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 57 Posted 2004-03-16 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
Moderator Climbing, hello!
"The proposal of 'Can you help write how to test the used space of the system disk (C drive)' is good. Can this be realized? The purpose is to test the used size of the system disk and allocate it to the size of the backup partition to be rebuilt, so as to not waste space."
Floor 58 Posted 2004-03-16 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 statement quoted by Climbing on 2004-3-15 23:24:01:
I have tried it. The ordinary version of PQ8 does not support script operations. Only the pro version of PQ can have this function, that is, there is the /CMD parameter. The /ARG parameter is used to specify command line parameters. That is to say, other parameters except the /ARG parameter can be put into a file and then referenced by the /ARG parameter. This is designed to prevent the command line parameters from being too long and exceeding the maximum limit.

Thank you for your patient explanation! Thank you! I hope to solve the previous problem! I am now translating each word of the PQ instructions one by one! But I don't know when I can finish the translation! Dizzy~~~~~~~~~~~~~~~Dizzy!!
Floor 59 Posted 2004-03-16 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
The following is a quote from walu on 2004-3-16 7:19:11:
Hello, Moderator Climbing!
"Can you help add how to test the used space of the system partition (C drive) as well (testing the used size of the system drive to allocate to the size of the backup partition to be rebuilt, the purpose is to not waste space)" This proposal is good. Can it be implemented?


In fact, the command to check the available space size of a partition is already in the script I provided above. There may be many partitions on a hard disk, and you don't have to take space from the C drive (or the first partition on the hard disk) to back up data, unless there is only this one partition on your hard disk. If that's the case, the script I provided above can achieve this function.

// Select the first partition on the hard disk, which is the C partition you mentioned
Select Partition First

// Check if the available space on this partition is more than 1000MB. If yes, free up.
IF GetUnusedAmount >= 1000 Then
Resize Space After 1000
End If

// Select the unallocated space just freed up
Select Unallocated After Selected Partition

// Create a partition of the specified size on this space. The volume label of the partition is SYS_GHOST. Of course, you can modify the label according to the actual situation.
Create /FS=FAT32 /LABEL="SYS_GHOST"

// Convert this partition to a primary partition
Convert To Primary

Note: The above commands are just examples and may have problems during operation.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 60 Posted 2004-03-16 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
No, that's not what I meant.
What I mean is: I want to use F11 to one-click restore the system and back up the C drive, and create a new partition in the last partition of the hard drive to store the image of the C drive.
According to your automatic partitioning method, the new partition can only be fixed at 2G or 1G, in short, it's fixed. I want to automatically detect if the C drive data is 2G, the new partition will automatically adjust to 4G; if it's 1G, the new partition will automatically adjust to 2G...
Forum Jump: