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-30 13:43
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Extremely difficult!!] Printing problem under DOS, details inside! (Please ask all experts to come to the rescue!) View 1,407 Replies 7
Original Poster Posted 2006-06-29 00:15 ·  中国 天津 红桥区 联通
初级用户
Credits 42
Posts 11
Joined 2006-06-28 23:54
20-year member
UID 57715
Status Offline
I wrote it very detailed, please be sure to read it patiently, please don't treat my question as a general novice question~~
Also, my own test process, all the masters must read it carefully before answering, no water injection is allowed!

You are my last hope!!!!!

The thing is like this, my computer is a C3 1G/810E2 motherboard/256MB memory/40GB hard drive, and the printer is LQ-1600K inserted into the LPT1 parallel port!!
The operating system is WINDOWS ME single system, installed in drive C, there are a total of 2 partitions, both drives C and D are in FAT32 format, absolutely no virus, and it has been repartitioned and formatted!!

Use autoexec.bat and config.sys to implement the startup menu. (The specific contents of these two files are given at the end of the article!)
1. Enter winme
2. Enter ucdos

If you press Enter after selecting 1, you will enter the normal startup graphical interface of WINME. The printer has no problems. It is very normal!
Note: In WINME, LQ1600K has been set as the default printer, no other model printer has been installed, no sharing! No networking, no networking!!

If you select 2, you will enter the pure DOS environment of WINME, and then automatically CALL UCDOS.bat to enter UCDOS, and then enter a software in our profession. This software must be used under DOS+UCDOS! And my purpose is to make LQ1600K print things in this DOS environment!!


My problem is here:
After entering 2, the printer's light, only the "power" is green and always on, and the other lights are off! That is to say, the printer has not received any control signals!!!
dir >prn will display an English prompt:
Invalid device request writing device PRN
Abore,Retry,Ignore,Fail?
dir > lpt1 will also display a similar prompt, except that the prompt becomes LPT1.

I have tried all kinds of modes of the LTP port in BIOS, what EPP, what EPP+, what S, etc., and their various versions, but there is no change!!! The problem cannot be solved!

Self-experiment:
Use a 98 boot disk (small floppy 1.44), enter the pure DOS environment of WIN98! The "online" light of LQ1600K lights up with a snap! After entering DOS, operations such as DIR >prn have no problems. Absolutely normal! At this time, the BIOS is set to EPP 3 mode.

The print cable has been changed or N strips! The problem has no change~ the phenomenon is still the same.

In UCDOS, type the command setup and press Enter, set the printer parameters, and almost all settings have been tried, but the problem has no change! The phenomenon is still the same.

Summary:
The printer prints normally in any version of Windows (win95 win98 winme win2000 winxp)!! Even when entering the blue screen of BIOS, the printer is in the "online" state. No abnormalities! 98 boot disk, 98 boot CD, all print without any problems! But only in the pure DOS of WINME can't print!! The prompt "Invalid device..." etc. appears!

What is going on here??? What else do I need to test?
I have found the after-sales service department of the computer. After 10 days of chip-level testing of my computer motherboard, no problem was found! Indeed, I have never had any problems during use! Therefore, the possibility of the computer being problematic can be ruled out now, and this LQ1600K printer has never had any problems since it was bought. It is only when using that DOS software that the problem occurs!

Please don't doubt our professional software. This software is a database system running in the UCDOS environment. It is an audit-specific software for us. When people wrote this software, it was to run in this environment! It cannot be changed~~ And this software has been used normally for more than 5 years, no problem.

My last own suspicion:
I remember that DOS has the redirection function. After I boot with the 98 startup disk, enter UCDOS, use dir >prn and press Enter, but it is displayed on the screen!! Instead of being printed directly??? Could it be that PRN is defined to the screen??? And after QUIT from UCDOS, DIR >PRN again is normal... and can also print...???

My EMAIL: (waiting online for 72 hours!!)
cdma5002@126.com


Finally, attach the contents of the Autoexec.bat and config.sys files:
As for MSDOS

============autoexec.bat==============
@ECHO OFF
SET WINDIR=C:\WINDOWS
SET WINBOOTDIR=C:\WINDOWS
SET COMSPEC=C:\WINDOWS\COMMAND.COM
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\UCDOS;"D:\Backup\"
SET PROMPT=$p$g
SET TEMP=D:\TEMP
SET TMP=D:\TEMP
GOTO %CONFIG%
:WINME
C:\WINDOWS\WIN.COM
GOTO END
:DOS
C:\WINDOWS\SMARTDRV.EXE
CALL C:\UCDOS\UCDOS.BAT
CD\sj
sj
CD\
GOTO END
:END


===============config.sys==============

menuitem=Winme,Windows Me
menuitem=Dos,Dos and Ucdos
menudefault=Winme,10
menucolor=15,0






device=c:\windows\ifshlp.sys
files=60
buffers=40
dos=high,umb
stacks=9,256
==========================


------------------------------------------------
By the way, ask another DOS question:
This problem is problem two!! The above printer one is problem one!
I am a WINME system, but I boot from the 98 boot disk
A:\>sys a: c: Enter
After restarting, change WINME to start with 98

Then want to change back! Boot with the WINME boot disk
A:\>sys c: Enter
After restarting, WINME can start normally.
But why doesn't WINME load AUTOEXEC.BAT and CONFIG.SYS during the startup process anymore?!!!!
--------------------------------------------------
Floor 2 Posted 2006-06-29 01:32 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The reason is actually very simple. There is no truly complete pure DOS environment under WinME. Don't be deceived by that so-called DOS illusion! Not to mention that it doesn't support EMM386, Win3.x, etc., but it doesn't even support the printing function! We have already confirmed these things before. Therefore, if you want to print, please use a real pure DOS to achieve it!
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2006-06-29 09:22 ·  中国 浙江 台州 电信
管理员
★★★★
DOS非常爱好者
Credits 6,215
Posts 2,601
Joined 2006-01-20 13:00
20-year member
UID 49256
Status Offline
This is a bit similar to some financial invoice systems. It cannot be printed under pure DOS, but it can be done under DOS + UCDOS in Windows 98 SE! The DOS attached to Windows ME is the highest version of MSDOS, but its functions are反而 not as good as the DOS under Windows 98 SE!
Floor 4 Posted 2006-06-29 21:40 ·  中国 天津 南开区 联通
初级用户
Credits 42
Posts 11
Joined 2006-06-28 23:54
20-year member
UID 57715
Status Offline
Just as afnspy said, this thing is similar to an invoice system..

Today I spent a long time figuring out this thing again! I found many new problems again, and the following is a detailed account:

This is how the thing went:

Actually, this printer and computer are both from other units, and they asked me to repair them..
It's true that WINME doesn't have a real DOS, but today I consulted the person who installed this system in that unit. According to his description, he used a tool called Real DOS-Mode Patch for Windows Millennium, and successfully brought out the DOS of WINME! And was able to achieve printing. Recently it can't print anymore, so that's why he asked me to take a look - -||

Regarding the small tool Real DOS-Mode Patch for Windows Millennium (only 9KB), the introduction is in the following link:
http://toget.pchome.com.tw/tip/utility/tip_128.html
The download address of this tool is:
http://home.planet.nl/~keesnoor/files/mfddme13.zip

I'm really at my wit's end now - -|| I really don't know what to do..

Today I made a GHOST backup of its C drive, then reinstalled WIN98, and tried it. Printing in WIN98 works every time!! It shows that there should be no problem with the printer and computer hardware...
But a new problem occurred. Please take a look at the above AUTOEXEC.BAT and CONFIG.SYS. I also tested this startup menu function in 98. When selecting the second item to enter UCDOS, if I exit this auditing software, it doesn't go back to DOS, but goes back into WIN98... That's the goto end line in autoexec.bat. Is there any good way to make me still stay in DOS after exiting the auditing software??

Thank you!!
Floor 5 Posted 2006-06-29 21:54 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
There used to be something called MS-DOS 8.0 on elder brother Wengier's website, but it was deleted long ago~~~ Hehe~~~ Don't download the so-called boot disk 8.0 on the Internet either, it doesn't work well~~~~~ If every newbie asked questions like the thread starter, that would be great~~~~~

[ Last edited by electronixtar on 2006-6-29 at 21:57 ]

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 6 Posted 2006-06-30 01:35 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by cnmba at 2006-6-29 09:40 PM:
As AFNSPY said, this thing is similar to an invoice system..

Today I spent a long time figuring this thing out! I discovered many new problems again. The following is a detailed description:

Here's how it went:

Actually...


The landlord, I would like to make it clear again here that Windows ME does not have a truly complete pure DOS system. If you don't use any patches, it's impossible for you to enter the DOS interface; and even if you use that so-called Real DOS-Mode Patch for Windows Millennium, as I said above, it's not a truly practical pure DOS system, and there are many problems. I introduced this patch to everyone a few years ago and provided the download of its boot disk, but as the person above said, since it was later found to be not easy to use and not practical, it has long been removed from the website, so don't have any expectations for it anymore.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 7 Posted 2006-06-30 16:30 ·  中国 天津 联通
初级用户
Credits 42
Posts 11
Joined 2006-06-28 23:54
20-year member
UID 57715
Status Offline
So it turns out that's the case.... Hey... It seems that the so-called DOS in WINME can't successfully print...

OK, I'll ask a few other questions:

In DOS, I type dir >prn and press Enter or dir > LPT1 and press Enter

Why does it not output to the printer but directly to the screen instead??

What method can I use to redirect this PRN back??
Floor 8 Posted 2006-06-30 16:44 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
WinMe is the worst in the Win9x series, and not many people use it; they would rather use Win98SE.

Second question, do you check if there is a preview sentence in the batch file to start UCDOS?
Forum Jump: