Link to home
Start Free TrialLog in
Avatar of meesha
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?
Avatar of Soulja
Soulja
Flag of United States of America image

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.
Avatar of meesha
meesha

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 ?
SOLUTION
Avatar of Adrian Dobrota
Adrian Dobrota
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of meesha

ASKER

Thanks for the help.  kronostm had the answer I wanted, but Kronos gave me the idea how I want to do this.