General
cancel
Showing results for 
Search instead for 
Did you mean: 

net use commands - setting timeouts

Lisa_50
Occasional Visitor

net use commands - setting timeouts

Hello -
Can anyone tell me how to set a timeout using the DOS net command.

I am currently having to escape out of my DOS application in order to print a document.

Thank you in advance for any help you can provide.

lisa
10 REPLIES
F.J.Llorente Wayfarer
Frequent Advisor

Re: net use commands - setting timeouts

Ehm, can you please clarify the question? Do you mean a timeout for a network printer port? Or just how to capture a network printer to use it from DOS apps?

-- Wayfarer
A patch a day keeps problems away
Lisa_50
Occasional Visitor

Re: net use commands - setting timeouts

Hi -

I have three system (2 win98/1 win2k) I have a HP1150 connected to one of the win98 PC and shared it with the others. All windows applications print fine.

I attatched a "net use" command to the batch file that opens the DOs application. When a the two remote pcs print through dos, they have to escape out to windows before the job will print.

My question: is there anyway to assign a default timeout setting using "net use"? or any other way around having to escape out of DOS to print?

Thank you again,
Lisa
F.J.Llorente Wayfarer
Frequent Advisor

Re: net use commands - setting timeouts

Can you post the whole 'net use' command?

-- Wayfarer
A patch a day keeps problems away
Lisa_50
Occasional Visitor

Re: net use commands - setting timeouts

I forgot to mention that the dos application resides on a novell network.

The batch file is as follows:

@echo off
net use lpt2 \\cserv\cservice
m:
cd\merch
de16m merch merch
cd\
c:


Hope you can find something in this. Again..thank you.

Lisa
F.J.Llorente Wayfarer
Frequent Advisor

Re: net use commands - setting timeouts

Try:

NET USE LPT2: \\cserv\cservice /PERSISTENT:YES

Hope it'll help...

-- Wayfarer
A patch a day keeps problems away
Roger Faucher
Honored Contributor

Re: net use commands - setting timeouts

Lisa:

Are you using the Novell Client for Netware or the Microsoft Client for Netware?

The technique traditionally used to accomplish your goal is to specify AUTOENDCAP. It's been a while since I messed with Netware. Let me know if you need more help and I'll look it up.

Roger
Make a great day!

Roger
Lisa_50
Occasional Visitor

Re: net use commands - setting timeouts

Well - using the persistent:yes worked on the
w2k pc, but not on the w98 pc. So,thank you Wayfare. Roger - I am using client32 (The Novell Client) So - how and where do I use the ENDCAP command. Thank you many times over to both of you.
Lisa
Roger Faucher
Honored Contributor

Re: net use commands - setting timeouts

Lisa:

This article points out the differences between WIN9x and WINNT for your purposes. Also, the last paragraph tells how to access TIMEOUT and AUTOENDCAP in client32.

http://support.novell.com/cgi-bin/search/searchtid.cgi?/10022667.htm

HTH

Roger
Make a great day!

Roger
Jon Finley
Honored Contributor

Re: net use commands - setting timeouts

In 98, within the printer definition, you have a check box that says: "Capture printer port".

This allows printing from DOS level out to the network or local printer.

Jon

"Do or do not. There is no try!" - Yoda
Antoniov.
Honored Contributor

Re: net use commands - setting timeouts

Hi Lisa,
in Win98 you could create e new shared printer at window level; thane you could connect queue to lpt2 port and enable print from dos. In this way, printer control is under windows instead dos emulation.
If you haven't driver you can use generic/text printer.
I used this techique in past and worked fine!

@Antoniov
Antonio Maria Vigliotti