meesha
asked on
'Net Use' in Windows 98 Autoexec.bat
I am trying to map a network printer to LPT3 on a Windows 98 workstation. I placed the following in the autoexec.bat file:
net use lpt3: /d
net use lpt3: \\server01\ml-1200
When Windows starts, I get an error that the network service has not started and to install NetBUI or IPX/SPX. This is a peer-to-peer Windows XP network with TCP/IP and Client for Microsoft Networks installed.
Do I have to have an entry in my autoexec.bat file with 'net start' first? How do I map this printer before Windows loads?
net use lpt3: /d
net use lpt3: \\server01\ml-1200
When Windows starts, I get an error that the network service has not started and to install NetBUI or IPX/SPX. This is a peer-to-peer Windows XP network with TCP/IP and Client for Microsoft Networks installed.
Do I have to have an entry in my autoexec.bat file with 'net start' first? How do I map this printer before Windows loads?
What is the reason you need it to load before windows starts?
I don't think you will be able to since the autoexec runs before network services starts. If you are trying to print to MS-DOS base applications you can always select the option "Do you print from MS-DOS-based programs?" when setting the printer up in windows.
ASKER
It does not matter that it loads before Windows starts, only that it loads at some time when the user turns the computer on.
The program is a DOS based application that uses LPT3.
Could I run a batch file from 'run=' in WIN.INI ?
The program is a DOS based application that uses LPT3.
Could I run a batch file from 'run=' in WIN.INI ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you are comfortable working in the registry,make the bat file, and call it from the run key, it will run when windows loads
ASKER
Thanks for the help. kronostm had the answer I wanted, but Kronos gave me the idea how I want to do this.