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-29 21:45
中国DOS联盟论坛 » DOS软件下载 & 游戏分享 (下载室) » 5-in-1 command-line software, please use it DigestII View 13,265 Replies 11
Original Poster Posted 2005-08-18 17:35 ·  中国 湖北 宜昌 电信
高级用户
★★
Credits 677
Posts 194
Joined 2003-09-13 00:00
22-year member
UID 9778
Gender Male
Status Offline
This program can only run under DOS. I want to combine some commands, so I wrote this thing.

Programming software: qbasic4.5

Running environment: DOS

Command Parameter

For example:

To open the optical drive mtools open cdrom

Close the optical drive mtools close cdrom

Restart mtools re pc

Shut down mtools off pc

Tip: This software has been updated. Please download the new version in the final reply!

[ Last edited by qb45 on 2005-8-25 at 12:26 ]
Attachments
MTOOLS.rar (29.22 KiB, Credits to download 1 pts, Downloads: 88)
Floor 2 Posted 2005-08-18 20:45 ·  中国 湖北 武汉 联通
高级用户
★★★
Credits 587
Posts 302
Joined 2005-07-25 17:31
20-year member
UID 41046
Gender Male
Status Offline
I did the CD - ROM test, GOOD, but can it recognize the /? parameter and display the help information without parameters. Also, if this program only completes these functions, can it be compiled into a.COM file? The file size is also "a bit" larger. Try assembly?

Just a little suggestion, if it can be improved, it will be quite good!
Support you
欢迎造访DOS的小屋!
http://risky.ik8.com
Floor 3 Posted 2005-08-18 22:30 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Not bad. But I suggest using only one parameter would be more convenient.

Judging from the poster's name, I guess this must have been made with QB? The exe file is a bit large, try using upx to lose weight.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 4 Posted 2005-08-19 12:50 ·  中国 浙江 湖州 联通
初级用户
★★
Credits 178
Posts 78
Joined 2005-08-09 17:09
20-year member
UID 41491
Gender Female
Status Offline
My system is 2003, sometimes it works and sometimes it doesn't. Oh my god
Floor 5 Posted 2005-08-20 18:20 ·  中国 山东 济宁 电信
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
No need! Just compile with qb71 and cancel codeview and "must have BRT library"
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Floor 6 Posted 2005-08-21 10:26 ·  中国 湖北 宜昌 电信
高级用户
★★
Credits 677
Posts 194
Joined 2003-09-13 00:00
22-year member
UID 9778
Gender Male
Status Offline
Here are the translated contents:

Below are the suggestions from everyone who is enthusiastic. According to the suggestions, I updated the software

I did a test on CD-ROM, GOOD, but can it recognize the /? parameter and display the help information when there is no parameter. Also, if this program only completes these functions, can it be compiled into a.COM file? The file size is also "slightly" larger. Try assembly?


Oh no, I don't know assembly, I only know how to use qbasic

Recognizing the /? parameter and displaying the help information when there is no parameter, this suggestion is good, it has been used

Nice. But I suggest that using only one parameter will be more convenient.


This suggestion is very good, it has been used, using numbers from 1 to 9 can execute corresponding functions

My system is 2003, sometimes it works and sometimes it doesn't


Please use it under DOS, this is a DOS software

No need! As long as you compile with qb71 and cancel codeview and use "must have BRT library"


I only use the qbasic4.5 version, I can't do anything else

[ Last edited by qb45 on 2005-8-25 at 12:41 ]
Floor 7 Posted 2005-08-25 12:42 ·  中国 湖北 宜昌 电信
高级用户
★★
Credits 677
Posts 194
Joined 2003-09-13 00:00
22-year member
UID 9778
Gender Male
Status Offline
Updated according to everyone's suggestions! (Thank you all very much for your concern)

Usage
MTOOLS /parameter [>filename (optional)]
/? or without parameters can display help
/Save CMOS or 1 can save CMOS
/Load CMOS or 2 can restore CMOS
/Save MBR or 3 can save the MBR of the hard disk
/Load MBR or 4 can restore the MBR of the hard disk
/OFF or 5 can shut down the computer
/RE or 6 can restart the computer
/Open CD or 7 can open the CD drive
/Close CD or 8 can close the CD drive
/Save C or 9 can call GHOST to save the C drive
(GHOST.EXE should be in the same directory or in the PATH)
/Load C or 10 can call GHOST to restore the C drive
(GHOST.EXE should be in the same directory or in the PATH)

Note, please do not use this software under the WIN system!
Usage examples:

Open CD drive
MTOOLS /open CD
or use MTOOLS 7 (Note that this does not need to add the / symbol, the same below)
Close CD drive
MTOOLS /close CD
or use MTOOLS 8 (Note that this does not need to add the / symbol, the same below)
Save the MBR of the hard disk
MTOOLS /SAVE MBR >A:\HDMBR.DAT
If no filename is added, it will prompt to enter the filename, and if no filename is entered, the default filename will be used
or use MTOOLS 3 >A:\HDMBR.DAT
Restore MBR
MTOOLS /LOAD MBR >A:\HDMBR.DAT
If no filename is added, it will prompt to enter the filename, and if no filename is entered, the default filename will be used
or use MTOOLS 4 >A:\HDMBR.DAT
Call the external command GHOST to save the C drive (GHOST.EXE should be in the same directory or in the PATH)
MTOOLS /SAVE C >D:\GHOST\C.GHO
If no filename is added, it will prompt to enter the filename, and if no filename is entered, the default filename will be used
or use MTOOLS 9 >D:\GHOST\C.GHO
Call the external command GHOST to restore the C drive (GHOST.EXE should be in the same directory or in the PATH)
MTOOLS /LOAD C >D:\GHOST\C.GHO
If no filename is added, it will prompt to enter the filename, and if no filename is entered, the default filename will be used
or use MTOOLS 10 >D:\GHOST\C.GHO
Attachments
MTOOLS.rar (30.11 KiB, Credits to download 1 pts, Downloads: 60)
Floor 8 Posted 2005-11-27 20:01 ·  中国 重庆 广电网
中级用户
★★
Credits 236
Posts 101
Joined 2005-11-27 19:35
20-year member
UID 46050
Status Offline
mtools? It feels like under Linux
Floor 9 Posted 2010-08-20 02:52 ·  中国 广东 广州 鹏博士宽带
新手上路
Credits 2
Posts 1
Joined 2010-08-18 12:09
15-year member
UID 172582
Gender Male
Status Offline
After searching for a long time, I finally found it. Give it a thumbs up.
Floor 10 Posted 2010-12-11 07:55 ·  中国 台湾 中华电信(HiNet)
初级用户
Credits 34
Posts 22
Joined 2010-11-20 09:26
15-year member
UID 177913
Gender Male
Status Offline
Thanks for the provision, studying earnestly
Floor 11 Posted 2010-12-12 17:36 ·  中国 黑龙江 哈尔滨 联通
版主
★★
系统收藏家
Credits 326
Posts 285
Joined 2010-02-22 00:00
16-year member
UID 160972
Gender Male
From 黑龙江省
Status Offline
Essence-added!
Good post!
Floor 12 Posted 2019-02-23 09:20 ·  中国 山东 枣庄 移动
中级用户
★★
Credits 316
Posts 158
Joined 2019-02-16 20:28
7-year member
UID 183406
Gender Male
Status Offline
Impressive
Forum Jump: