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/
CHAPTER 3

The NET Command


NET Command Syntax Chart


SymbolsPurpose
{ }Braces indicate a parameter you must use
[ ]Brackets indicate an optional parameter
|Bar indicates a choice of parameters
d:Indicates a drive letter from A: to Z: (LASTDRIVE= parameter must be set in your CONFIG.SYS file if you wish to use drives F: through Z:)
pathIndicates a drive and directory (e.g. C:\ACCOUNTS)
password1-8 or 1-16 character password
/rights/R /W /RW /WC /RWC Read, Write, Create (only take effect if PROTECT.COM is loaded)
deviceA DOS device name: PRN, LPT1, LPT2, LPT3 or LPT4, COM1, COM2, COM3 or COM4
network name1-8 characters that represent a drive and path or device name
computername1-15 characters identifying a computer starting with a double backslash ('\\')
number1-25 digit telephone number that may include Hayes dial syntax commands
commandAny valid NET command or sub command
/dIndicates that you wish to cancel a previous NET SHARE command or NET USE command

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

NET PRNSETUP


This command enables each user to use different sets of printer set-up codes while sharing a network printer. Using this command, you may specify a file that contains up to 64 bytes of printer set-up codes. Each time you start a print job, these codes are sent to the network printer before the print data is printed.

Syntax: NET PRNSETUP {device} {filename.ext}

The following command uses the printer set-up codes in the file PRNCODES.DAT to configure LPT1:

NET PRNSETUP LPT1 PRNCODES.DAT

All print jobs sent to the network printer associated with LPT1, will be preceded by the printer set-up codes assigned to LPT1.

You may cancel the NET PRNSETUP command using the /d parameter.

Syntax: NET PRNSETUP {device} /d

The following command clears the previous printer set-up codes assigned to LPT1:

NET PRNSETUP LPT1 /d

The {device} may be PRN, LPT1, LPT2, LPT3 or LPT4.

Each {device} may be assigned a different set of printer set-up codes.

The maximum length of the set-up string is 64 bytes. If the specified file is larger than 64 bytes, only the first 64 bytes are used.

The {device} must be redirected to a network printer using the NET USE command or the Station Manager.


[Top of Page]
[Chapter 4] [Chapter 2]
[Table of Contents] [Home Page]

Prices and World Wide Ordering Information

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