Solved

'Net Use' in Windows 98 Autoexec.bat

Posted on 2003-12-05
7
2,976 Views
Last Modified: 2008-02-01
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?
0
Comment
Question by:meesha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 26

Expert Comment

by:Soulja
ID: 9886966
What is the reason you need it to load before windows starts?
0
 
LVL 26

Expert Comment

by:Soulja
ID: 9886979
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.
0
 

Author Comment

by:meesha
ID: 9887929
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 ?
0
Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 14

Assisted Solution

by:kronostm
kronostm earned 75 total points
ID: 9888288
Yes, you can, and that's your bet here cause the net use command needs the netwk service started as Soulja said, and that does happenAFTER autoexec loads.
Another option would be to use the /persistent option that net use has, so the mapping wopn't lose.
from printer proprieties / port config you have a "capture port" option. Try using that if you want.
There are lots of solutions in win98, but autoexewc is not one of them.

Good Luck

Kronos
0
 
LVL 84

Accepted Solution

by:
oBdA earned 50 total points
ID: 9888314
Save those two lines as "logon.bat" (or whatever.bat) someplace, then create a shortcut to it in the "Startup" folder in the start menu.
0
 
LVL 41

Expert Comment

by:stevenlewis
ID: 9888556
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
0
 

Author Comment

by:meesha
ID: 9889132
Thanks for the help.  kronostm had the answer I wanted, but Kronos gave me the idea how I want to do this.
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question