Run dos command

M

Mark Goldin

I am trying to run:
NET USE LPT1 \\serverip\printername
but it's not going. Program just stays on that line.
 
M

markgoldin

Yes.

Bob Barrows said:
In an ASP page??

--
Microsoft MVP - ASP/ASP.NET - 2004-2007
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
 
A

Adrienne Boswell

Gazing into my crystal ball I observed "markgoldin" <markgoldin_2000
@yahoo.com> writing in (e-mail address removed):

Please don't top post. Also remove signatures. See reply below.

Okay, I gotta ask, why are you trying to do this on the server? Maybe if
you told us your real intention we could be of more help to you.
 
E

Evertjan.

Adrienne Boswell wrote on 28 sep 2009 in
microsoft.public.inetserver.asp.general:
Gazing into my crystal ball I observed "markgoldin" <markgoldin_2000
(e-mail address removed):

Please don't top post. Also remove signatures. See reply below.

Okay, I gotta ask, why are you trying to do this on the server? Maybe if
you told us your real intention we could be of more help to you.

In ASP, programmes do not "stay on a line".

They either go on or freak [= error or time-] out.
 
B

Bob Barrows

markgoldin said:


As Evertjian says, in ASP a program doesn't just "stay" on a line. An
error message will be raised: whether it's the error from the line of
code, or a script-timeout error, an error will be raised.

I don't understand why a printer needs to be established on the web
server. Are you trying to have something printed via your server-side
code? It's not something I've ever contemplated doing, and I'me not
really sure it is possible. I think the first thing to establish is
whether the IUSR_Machinename account has authority to run a NET USE
statement. Also, the IUSR account would require permission to access
\\serverip\printername
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top