中国DOS联盟论坛

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-09-14 23:47
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS软件下载 & 游戏分享 (下载室) » 5-in-1 command-line software, please use it
Printable Version  14,246 / 11
Floor1 qb45 Posted 2005-08-18 17:35
高级用户 Posts 194 Credits 677
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)
Floor2 fdsiuha Posted 2005-08-18 20:45
高级用户 Posts 302 Credits 587
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
Floor3 JonePeng Posted 2005-08-18 22:30
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
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.
Floor4 shj99422 Posted 2005-08-19 12:50
初级用户 Posts 78 Credits 178
My system is 2003, sometimes it works and sometimes it doesn't. Oh my god
Floor5 defrag Posted 2005-08-20 18:20
中级用户 Posts 570 Credits 456
No need! Just compile with qb71 and cancel codeview and "must have BRT library"
Floor6 qb45 Posted 2005-08-21 10:26
高级用户 Posts 194 Credits 677
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 ]
Floor7 qb45 Posted 2005-08-25 12:42
高级用户 Posts 194 Credits 677
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)
Floor8 rocchapter Posted 2005-11-27 20:01
中级用户 Posts 101 Credits 236
mtools? It feels like under Linux
Floor9 dosdosfans Posted 2010-08-20 02:52
新手上路 Posts 1 Credits 2
After searching for a long time, I finally found it. Give it a thumbs up.
Floor10 nakay1 Posted 2010-12-11 07:55
初级用户 Posts 22 Credits 34
Thanks for the provision, studying earnestly
Floor11 doslike Posted 2010-12-12 17:36
版主 Posts 285 Credits 326 From 黑龙江省
Essence-added!
Good post!
Floor12 Aadmin Posted 2019-02-23 09:20
中级用户 Posts 158 Credits 316
Impressive
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023