『楼 主』:
DOS下的虚拟软驱(四)--DOSIMG篇
使用 LLM 解释/回答一下
上回说到只想把文件解压出来就行了,而EIM支持的格式又不全,那。。。就有人编程解决这个问题了。于是,DOSIMG就诞生了!
作者马秉尧写了软件说明,我就可以偷懒了,呵呵。。。
贴在下面,想看就看吧。唉,拿到一个软件有作者亲自写的软件说明可看是多幸福的事啊。
****************************************************************************
DOSIMG v1.81
****************************************************************************
1. 功能介绍:
这是一个将各种软盘镜像文件直接展开到硬盘上的软件。支持DOS和Windows两
种操作系统。在Windows 9x/Me/NT/2000/XP/.NET或带有LFNAPI的纯DOS下,可以支
持中文长文件名,包括软盘镜像文件中的汉字长文件名。
如果你喜欢这个工具,或源代码对你有所帮助,或者你有什么意见和想法,以
及对源代码有什么不明白的地方,请来信给我!(Email见下)
2. 系统要求:
386以上即可。
在不带有LFNAPI支持的5.0或以后版本的纯DOS下, 不支持长文件名。
在带有LFNAPI支持的纯DOS或者Windows9x/Me/NT/2000/XP/.NET下,支持长文件名。
3. 文件列表:
readme.txt -----------------> 本文件
diary.txt -----------------> 开发日记
gpl.txt -----------------> 授权协议
dosimg.exe -----------------> 本软件的可执行程序
cwsdpmi.exe -----------------> 纯DOS下运行必备的32位扩展器
src\*.* -----------------> 源程序
src\unicode.* -----------------> Unicode到GBK的转化表和程序
src\xstr.pas -----------------> 字符串库源程序
src\xdos.pas -----------------> 扩展DOS库源程序
src\img.pas -----------------> IMG,DDI文件库源程序
src\dosimg.pas -----------------> 主程序
units\*.* -----------------> 编译好的单元(没用,可以删除)
tools\doslfn.zip-----------------> 一个纯DOS下支持长文件名的驱动
4. 编译源代码:
使用Free Pascal 1.0.6版编译器编译通过。
5. 版权说明:
此程序是自由软件,遵循GPL协议( 详细内容请见gpl.txt )。非常欢迎大
家对其修改补充,不断的完善它,但是在发布的时候也要公布源代码,并在程
序中写上我的名字。
6. 软件使用参数说明:
用法:
DOSIMG 文件名
文 件 名:指需要展开的磁盘镜像文件的文件名,可以使用* 和? 这两个通配
符,如果不加扩展名,默认扩展名为.IMG。
路 径:指文件展开以后所存放的目录名,如果所给的目录不存在,则自动
创建之,默认路径为当前目录。
参数选项:
/S: 如果所给的文件名中包含目录,则也搜索这些目录及其子目录中的
文件。
/L: 仅显示磁盘镜像文件中包含的文件列表,而不展开文件。
/D: 展开的文件放在以磁盘镜像文件名命名的目录中。
/H or /?: 显示命令行参数帮助信息。
雨飞工作室
马秉尧
2002年8月20日
andot@21cn.com
以下是FAQ:
Q:在纯 DOS 下运行时,为什么会出现错误而无法运行?
A:因为本软件是用 Free Pascal 编写的 32 位 DOS 程序,所以在
纯 DOS 下运行时,需要先加载 DOS 扩展器 CWSDPMI.EXE,可以
将 CWSDPMI.EXE 放到 C:\Windows\Command等可以自动搜索到的
目录中,这样在运行 DOSIMG 时,会自动加载 CWSDPMI.EXE,不
需要单独执行。DOSIMG也可以放在那个目录里。
Q:在纯 DOS 下运行时,如何才能使用长文件名?
A:在 TOOLS 目录里面有个 DOSLFN.ZIP 的压缩包。那个是纯 DOS
下支持长文件的驱动程序。在纯 DOS 下先运行它,就可以使用
长文件名了。但是因为这个驱动现在仍然有许多bug,所以,不
能保证在任何情况下,DOSIMG 都是正确的在它上面运行。测试
中发现,如果运行 DOSIMG 的当前目录是磁盘的根目录的话,便
能正确运行,否则,会出现找不到文件(文件名不对)这样莫名
其妙的错误。
=======================================
多好的软件啊!多好的人啊!呵呵。。。我喜欢。
不过,下面要介绍的老外的一个软件也是我的最爱。那就是DI。为什么?为什么要推荐这个软件呢?(DiskImager)敬请期待!
Last time, I just wanted to extract the files, but EIM didn't support all formats. Then... someone programmed to solve this problem. So, DOSIMG was born!
The author Ma Bingyao wrote the software instructions, so I can be lazy, heh heh...
Paste it below, if you want to read it, you can. Oh, how happy it is to get a software and have the author's own software instructions to read!
****************************************************************************
DOSIMG v1.81
****************************************************************************
1. Function introduction:
This is a software that directly expands various floppy disk image files to the hard disk. It supports both DOS and Windows operating systems. In Windows 9x/Me/NT/2000/XP/.NET or pure DOS with LFNAPI, it can support Chinese long filenames, including Chinese long filenames in floppy disk image files.
If you like this tool, or the source code is helpful to you, or you have any opinions and ideas, and have any unclear places about the source code, please write to me! (Email is below)
2. System requirements:
386 or above is okay.
In pure DOS of version 5.0 or later without LFNAPI support, long filenames are not supported.
In pure DOS with LFNAPI support or Windows 9x/Me/NT/2000/XP/.NET, long filenames are supported.
3. File list:
readme.txt -----------------> This file
diary.txt -----------------> Development diary
gpl.txt -----------------> License agreement
dosimg.exe -----------------> The executable program of this software
cwsdpmi.exe -----------------> The necessary 32-bit extender for running in pure DOS
src\*.* -----------------> Source code
src\unicode.* -----------------> Conversion table and program from Unicode to GBK
src\xstr.pas -----------------> Source code of string library
src\xdos.pas -----------------> Source code of extended DOS library
src\img.pas -----------------> Source code of IMG, DDI file library
src\dosimg.pas -----------------> Main program
units\*.* -----------------> Compiled units (useless, can be deleted)
tools\doslfn.zip-----------------> A driver for supporting long filenames in pure DOS
4. Compiling the source code:
Compiled successfully using Free Pascal 1.0.6 compiler.
5. Copyright notice:
This program is free software, following the GPL agreement (for details, please see gpl.txt). Everyone is very welcome to modify and supplement it, and continuously improve it. But when releasing it, the source code must also be published, and my name must be written in the program.
6. Software usage parameter instructions:
Usage:
DOSIMG filename
File name: refers to the filename of the disk image file to be expanded. You can use the two wildcards * and?, if the extension is not added, the default extension is.IMG.
Path: refers to the directory name where the file is expanded. If the given directory does not exist, it will be created automatically. The default path is the current directory.
Parameter options:
/S: If the given filename contains a directory, then search for files in these directories and their subdirectories.
/L: Only display the file list contained in the disk image file, without expanding the file.
/D: The expanded file is placed in a directory named after the disk image filename.
/H or /?: Display command line parameter help information.
Rain Flying Studio
Ma Bingyao
August 20, 2002
andot@21cn.com
The following is FAQ:
Q: Why does an error occur and it cannot run when running in pure DOS?
A: Because this software is a 32-bit DOS program written with Free Pascal, so when running in pure DOS, you need to load the DOS extender CWSDPMI.EXE first. You can put CWSDPMI.EXE in a directory like C:\Windows\Command that can be automatically searched, so that when running DOSIMG, CWSDPMI.EXE will be loaded automatically, and you don't need to execute it separately. DOSIMG can also be placed in that directory.
Q: How to use long filenames when running in pure DOS?
A: There is a compressed package DOSLFN.ZIP in the TOOLS directory. That is a driver program for supporting long files in pure DOS. Run it first in pure DOS, and then you can use long filenames. But because this driver still has many bugs at present, it cannot be guaranteed that DOSIMG will run correctly on it in any case. It was found in the test that if the current directory of running DOSIMG is the root directory of the disk, it can run correctly; otherwise, there will be inexplicable errors like not finding the file (wrong filename).
=======================================
What a great software! What a great person! Heh heh... I like it.
But, the following foreign software I like is also my favorite. That is DI. Why? Why recommend this software? (DiskImager) Stay tuned!
|