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-20 18:59
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Virtual Floppy Drives under DOS (Part 4) - DOSIMG Edition DigestI View 7,075 Replies 2
Original Poster Posted 2002-11-04 00:00 ·  中国 江西 吉安 电信
高级用户
★★
Credits 667
Posts 135
Joined 2002-10-25 00:00
23-year member
UID 62
Gender Male
Status Offline
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!
================================= kickout
大功告成,打个Kiss!
Floor 2 Posted 2002-11-09 00:00 ·  中国 山东 济宁 联通
初级用户
Credits 102
Posts 1
Joined 2002-11-09 00:00
23-year member
UID 206
Gender Male
Status Offline
How to extract a downloaded *.img file. For example, the DOS 7.01 boot disk downloaded from this site.
Floor 3 Posted 2002-11-10 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
Ah. This problem:
For example, the boot disk IMG file you downloaded is named: dos701bd.img
To decompress it with dosimg, it's:
dosimg dos701bd.img
You can also add various parameters. The usage is all stated in the above post. But let's still say it.
For example, if there are subdirectories in your IMG, you can add the parameter /s
dosimg dos701bd.img /s
That's it. Of course, both of these files need to be in the current directory (or you can point out the location in the path).
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Forum Jump: