Re: net use command

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: hkallen (hkallen.16xqq5_at_mail.mcse.ms)
Date: 05/27/04


Date: Thu, 27 May 2004 10:20:16 -0500


This may help you:

NET USE Connects or disconnects your computer from a shared resource or
displays information about your connections.
NET USE [drive: | *] [\\computer\directory [password | ?]]
[/SAVEPW:NO] [/YES] [/NO]
NET USE [port:] [\\computer\printer [password | ?]]
[/SAVEPW:NO] [/YES] [/NO]

NET USE drive: | \\computer\directory /DELETE [/YES]
NET USE port: | \\computer\printer /DELETE [/YES]
NET USE * /DELETE [/YES]

NET USE drive: | * /HOME

drive Specifies the drive letter you assign to a shared directory.
* Specifies the next available drive letter. If used with /DELETE,
specifies to disconnect all of your connections.
port Specifies the parallel (LPT) port name you assign to a shared
printer.
computer Specifies the name of the computer sharing the resource.
directory Specifies the name of the shared directory.
printer Specifies the name of the shared printer.
password Specifies the password for the shared resource, if any.
? Specifies that you want to be prompted for the password of the shared
resource. You don't need to use this option unless the password is
optional.
/SAVEPW:NO Specifies that the password you type should not be saved in
your password-list file. You need to retype the password the next time
you connect to this resource.
/YES Carries out the NET USE command without first prompting you to
provide information or confirm actions.
/DELETE Breaks the specified connection to a shared
resource.
/NO Carries out the NET USE command, responding with NO automatically
when you are prompted to confirm actions.
/HOME Makes a connection to your HOME directory if one is specified in
your LAN Manager or Windows NT user account.

To list all of your connections, type NET USE without options.

ddimarzio@poci.net wrote:
> *I have windows xp installed on all my pc's and on several
> of them all of a sudden I can't print to a networked
> printer from a dos based program. I can print to screen
> but not to the network printer. The way I check to see if
> the connection is ok, I goto the Dos prompt and type:
> net use lpt1 \\server\printer
>
> when I type: net I get an error:
> "net is not recognized as an internal or external command
> or program or batch"
>
> Any ideas. I tried replacing the net.exe and net.hlp
> files but that did not fix the problem.
>
> thanks for any ideas. *

--
hkallen
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message622244.html
 


Relevant Pages

  • Re: help chdir UNC path ( newbie )
    ... Accessing a remote machine UNC directory via mapping: ... resource or displays information about your ... If used with /DELETE, specifies to ... disconnect all of your connections. ...
    (comp.lang.perl.misc)
  • Re: Map network drive
    ... displays information about computer connections. ... Assigns a name to connect to the resource or specifies the device to be ... Specifies the name of the server and the shared resource. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: www.allfreecars.com/terms
    ... >the business e-mail, and I was led through their connections, to you! ... Are you not connected to this resource? ... You posted your question to one of those connections. ... a credit card charged and services not delivered. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Replication & Logon question
    ... I assume these are not now direct connections but mean a ... replicate all DCs using the other replication ... must be able to connect to that resource. ... managing the group membership seems to be the ...
    (microsoft.public.windows.server.active_directory)
  • Re: Changing an associated icon
    ... multipage icon has included in the resource correctly, ... parameters (Icon size) is specified as follows .. ... the function uses the actual resource width. ... Specifies the height, in pixels, of the icon or cursor. ...
    (comp.lang.pascal.delphi.misc)