NetSoft Computer Networks
Last Updated
March 10th
1997

Mirror Sites
NetSoft LAN
Download the
Software

Network Card
Drivers

Secure
Features
User's Guide
Help
VeriSign

Search
Distribution
Rights

Listserv
Shareware Links
Order Now
Order the
Software

Help Us
Promote
NetSoft LAN

Dealer
Enquires
Welcome

Home Page
http://www.netsoft.ie/

NetSoft LAN
NET Command
Quick Reference
Guide


NET SHARE Command

Display SHARE Lists

NET SHARE

Share A Drive Or Sub Directory

NET SHARE {shortname}={d:}[path] [password| *] [/rights]

NET SHARE {d:}[path] [password | *] [/rights]

Share A Printer Or Device

NET SHARE {shortname}={device} [password]| *] [/rights]

NET SHARE {device} [password] | *] [/rights]

Stop Sharing A Drive, Directory Or Device

NET SHARE {shortname} /d

NET SHARE {d:}[path] /d

NET SHARE {device} /d

NET USE Command

Display Redirection List

NET USE

Redirect A Drive

NET USE {d:} {\\computername\}[path | shortname][password | *]

Redirect A Device

NET USE {device} {\\computername\}[device | shortname][password | *]

Cancel A Drive Redirection

NET USE {d:} /d

Cancel A Device Redirection

NET USE {device} /d

Note The word USE may be replaced with the word CONNECT for MS-Networks compatibility

NET PRINT Command

Display Network Print Queue For Device

NET PRINT {device}

Printing On A Network Printer

NET PRINT d:\path\filename.ext {device}

Pause Printing Temporally

NET PAUSE PRINT

Continue Printing

NET CONTINUE PRINT | PRT

NET CONT PRINT | PRT

NET VIEW Command

Display Remote Computer's Video Screen

NET VIEW {\\computername} | MONO

NET VIEW supports the following screen modes:


 Mode      Res     Cards  Text/Graphics  

00h/01h   40x25    C/E/V       Text      
02h/03h   80x25    C/E/V       Text      
04h/05h  320x200   C/E/V     Graphics    
  06h    640x200   C/E/V     Graphics    
  07h     80x25    M/E/V       Text      
  08h    160x200   M/E/V     Graphics    
09h/0Ah  320x200   J/E/V     Graphics    

J=PCjr, M=MDA, C=CGA, E=EGA, V=VGAEGA 43 rows and VGA 50 rows are also supported.

NET HELP Command

Display Help For Any NET Command

NET [command] /?

Display All Help

NET HELP

Printing All Help To A Printer

NET HELP > PRN

Sending All Help To A File

NET HELP > filename.ext

Display NET Commands Available

NET

NET MODEM Commands

Disconnect Line (Hangup Modem)

NET HANGUP | HAN [x] [\\computername]

Set Modem To Auto Answer Mode

NET ANSWER | ANS [x] [\\computername]

Dial A Number And Connect To Remote Modem

NET DIAL [x] [\\computername\]{number}

Send Initialisation Or Reset String To Modem

NET INIT | RESET [x] [\\computername]

Connect Two Modems Via Cable For Test Mode

NET LINKA [x] [\\computername] From Computer 1

NET LINKB [x] [\\computername] From Computer 2

Note x=1 through 4 referring to the driver's device name MOD-NETx, If x is omitted then a defaultof 1 (MOD-NET1) is used.

Note If \\computername is omitted the command is sent to the local modem driver

Useful NET Commands

Displays DOS-NET Version

NET VERSION

Display List Of Servers

NET SERVERS

Display List Of Workstations

NET CLIENTS

Display Remote Computer's Shared Resources

NET LIST {\\computername}

Activate The DOS-NET Main Menu

NET MENU

Note The DOSNET.INI file Popup= parameter must be set to 1 for this command towork

NET Command Examples

Before you can connect to the server's hard disk, the server mustfirst share that hard disk using the NET SHARE Command:

NET SHARE HARDDISK=C:

or

NET SHARE C:

Note If a subdirectory is specified, client's will be limited to that subdirectory only when they connect using the NET USE command.

To connect to the shared hard disk from a client machine you must use the NET USE Command:

NET USE E: \\computername\HARDDISK

or

NET USE E: \\computername\C:

Note \\computername is the server's node name

Before you can connect to the server's printer, the server must first share that printer using the NET SHARE command:

NET SHARE PRINTER=LPT1

or

NET SHARE LPT1

To connect to the shared printer from a client machine, you must use the NET USE Command:

NET USE LPT1 \\computername\PRINTER

or

NET USE LPT1 \\computername\LPT1

In both examples above, the server must issue the NET SHARE command first. If the NET SHARE command is not issued, then the client will receive the error message:

35h Network name not found.


NET Command Line Syntax Chart


Legend

{ } Braces indicate a parameter you must use

[ ] Brackets indicate an optional parameter

| Bar indicates a choice of parameters

d: Indicates a drive letter

path Indicates a drive and sub directory

password 1-8 Character password

* Use in place of password, prompts for password

/rights /R /W /RW /WC /RWC Read, Write,Create

device A DOS device name: PRN, LPT1,2,3 or 4 COM1,2,3or 4

shortname 1-16 chars that represent a path/device name

computername 1-15 characters identifying a computer, startingwith '\\'

number 1-25 digit telephone number, may include Hayesdial syntax

command Any valid NET command

/d Indicates that you wish to cancel a SHARE Commandor USE command

You must include all punctuation (except braces, brackets and bars) such as periods, equal signs, forward slashes and backslashes where shown.


[Home Page] [Email Us]
[Search] [Download] [Register] [Help] [Features]

Prices and World Wide Ordering Information

Copyright © 1997 NetSoft Computer Networks. All Rights Reserved.
20 Sea Road, Galway, Ireland.
Tel (353)+91-529607.