我写的非常之详细,请务必耐心看完, 请别把我的问题当一般菜鸟问题看待~~
还有我自己测试的过程,请各位高人一定要仔细阅读后再回答,谢绝灌水!
你们是我最后的希望啦!!!!!!
事情是这样的, 我的电脑是一台C3 1G/810E2主板/256MB内存/40GB硬盘,打印机为LQ-1600K插在LPT1并口上!!
操作系统是WINDOWS ME 单一系统,安装在C盘,一共2个分区,C,D盘都是FAT32格式,绝对无病毒,已经重分区并格式化了!
使用autoexec.bat和config.sys,实现启动菜单,(关于这两个文件的具体内容,在文章的末尾处给出!)
1.进入winme
2.进入ucdos
其中选1回车的话,就进到WINME正常启动的图形界面中去了。。打印机没任何问题。很正常!
注:WINME中,已经把LQ1600K设置为默认打印机,也没安装任何一台其它型号打印机,也没共享!也没联网,也没联过网!!
若,选2的话,会进入WINME的纯DOS环境,然后自动CALL UCDOS.bat进入UCDOS了,然后进入我们专业上的一个软件,这个软件必须使用在DOS+UCDOS下!而我的目的就是要在DOS这种环境下,让LQ1600K去打印东西!!
我问题来了:
进2之后,打印机的灯,只有“电源”是绿色常亮的,其余的灯都是灭的! 也就是说,打印机没有接收到任何控制信号!!!
dir >prn 会显示英语提示:
Invalid device request writing device PRN
Abore,Retry,Ignore,Fail?
dir > lpt1 也会显示类似的提示,只不过提示变为LPT1而已.
在BIOS中把LTP端口的各种模式,什么EPP什么EPP+什么,什么S什么。。还有他们的各种版本都试验过了,无任何变化!!! 问题无法解决!
自己实验:
使用98引导盘(小软1.44),进WIN98的纯DOS环境! LQ1600K的"联机"灯啪就亮了! 进DOS后,DIR >prn等操作没有任何问题! 绝对正常!! 此时BIOS设置为EPP 3模式。
打印线已经换或N条!问题没有任何变化~现象依旧。。
在UCDOS里,敲入命令setup回车,设置打印机参数,几乎所有设置都试了个遍,问题无任何变化!!现象依旧。。
总结:
在任何一个版本的windows下(win95 win98 winme win2000 winxp)打印机均打印正常!!甚至进入BIOS那蓝色画面中去,打印机也是处于“联机”状态的!没有任何异常! 98引导盘,98引导光盘,都打印没有任何问题! 而单单只有在WINME的纯DOS下无法打印!! 出现"Invalid device ..."等提示!!
这到底是怎么搞的啊?!!! 我还需要试哪些地方啊?
我已经找到电脑的售后服务部门,人家经过10天对我电脑主板进行芯片级检测,未发现问题!! 确实,我使用过程中也从来没出过问题! 因此,现在可以排除电脑有问题的可能,而LQ1600K这台打机自打买来,也没出过问题,就是为了要使用那个DOS下的软件,才出现问题的!
也请不要怀疑我们这个专业软件,这个软件是运行在UCDOS环境下的数据库系统,是我们搞审计专用的软件,人家写这个软件的时候,就是要运行在这种环境下的! 无法改变~~而且这个软件已经正常的使用了5年多了,没问题的。
我最后自己的一写怀疑:
记得DOS有重定向功能,我在98启动盘引导后,进UCDOS,使用dir >prn回车, 竟然显示在屏幕上! 而不是直接打印出来?? 难道是把PRN给定义到屏幕上去了??? 而从UCDOS中QUIT后,再次DIR >PRN就正常了...也可以打印了...???
我的EMAIL: (72小时在线等待!!)
cdma5002@126.com
最后附上Autoexec.bat和config.sys文件的内容:
至于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
==========================
------------------------------------------------
另外顺便请教一个别的DOS问题:
这个问题就算
问题二吧!! 上面打印机那个算是问题一吧!
我是WINME的系统,但我从98引导盘光启后
A:\>sys a: c: 回车
重启后,把WINME改为98启动了
然后再想改回来! 把WINME启动盘,引导启动
A:\>sys c: 回车
重新启动后,WINME可以正常启动了.
但是,WINME启动过程中为什么再也不加载AUTOEXEC.BAT和CONFIG.SYS了呢?!!!!
--------------------------------------------------
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?!!!!
--------------------------------------------------