Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NET USE not doing what its told!

Status
Not open for further replies.

MasterPhil

IS-IT--Management
Jul 6, 2004
52
GB
I think I am going mad as I cannot get the net use command to work.

I have setup a DOS boot disk to enable me to login to the network via DOS so I can use Ghost in the way I want to use it.

All the commands in the autoexec.bat file run fine until I get to:-

NET USE f: \\amur\it\images

then it tell me that I have used an incorrect syntax! I have used this command so many times in the past and never had a problem. Have I missed something very simple?

I tried running NET USE /? | MORE but the system tells me that is the incorrect syntax as well. Works fine in XP though.

HELP!!!!!!!!
 
You have a BLANK SPACE in between F: and \\

TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
here's some syntax from my 98 box;

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

-- More --

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.

To see this information one screen at a time, type the
following at the command prompt:

NET USE /? | MORE
or
NET HELP USE | MORE

C:\WINDOWS>


TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
ok, I am getting more confused by the minute. If I do:-

net use f:\\amur\images

I get incorrect syntax, if I do:-

net use f: \\amur\images I get:-

error 53 the computer name specified in the network path could not be located.

This is driving me insane!
 
I meant to add that I have run net use f: \\amur\images on an xp machine and all works fine but as soon as I am doing it from a DOS boot disk, error messages abound!
 
Is the command NET USE on the disk? Is this the same disk and the way you have performed it in the past?
 
net use f: \\amur\images is the correct syntax.

"computer name specified in the network path could not be located" tells me that either you're not connected to the network or the computer is having some name resolution problem. Then, you mention a DOS boot disk.....does this boot disk have everything needed to join the network - NIC drivers, TCP/IP protocol, etc.
 
apologies....i posted the 1st before i ever even looked at any correct syntax and switches available in my 2nd post. (never had to use Net use)
obviously the error 53 way - is using the 'correct' syntax as smah points out.
however, i noticed in the 'other' running Thread615-879926 , that your autoexec.bat Path statement looks 'weak', and makes no reference to itself as a path.
post copies in this thread of your config.sys and auto files

TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
Hmmm ok, same disk but new NIC and new location. I have never had to use this disk on a static IP network before. All the notes I have read refer simply to putting the IP, subnet and gateway in protocol.ini.

Anyway, here is the autoexec.bat

path=a:\net
set temp=a:\net
a:\net\net initialize
a:\net\net start netbind
a:\net\umb.com
a:\net\tcptsr.exe
a:\net\tinyrfc.exe
a:\net\nmtsr.exe
a:\net\emsbfr.exe
a:\net\net logon
net use f: \\amur\images
f:\ghost


here is config.sys

files=30
device=a:\net\ifshlp.sys
lastdrive=z
DEVICE=A:\NET\HIMEM.SYS
DEVICE=A:\NET\EMM386.EXE NOEMS
DOS=HIGH,UMB



and here is protocol.ini

[network.setup]
version=0x3110
netcard=ms$elnk,1,MS$ELNK,1
transport=tcpip,TCPIP
lana0=ms$elnk,1,tcpip

[ms$elnk]
drivername=e100b$
; INTERRUPT=9
; IOADDRESS=0x300
; DMACHANNEL=none
; DMAMODE=burst
; MAXTRANSMITS=12
; MAXREQUESTS=8

[protman]
drivername=PROTMAN$
PRIORITY=MS$NDISHLP

[tcpip]
NBSessions=6
DefaultGateway0="194.205.40.216"
SubNetMask0="255.255.255.0"
IPAddress0="194.205.40.008"
DisableDHCP=1
DriverName=TCPIP$
BINDINGS=ms$elnk
LANABASE=0


If anyone can spot the stupid mistake please let me know as I am sure that is what this amounts to.

Phil

 
Hello MasterPhil,

I would check the tcp/ip config have netbios enabled over it.

regards - tsuji
 
I've never created a dos network boot disk before, so I may not be of much help. But one thing that I don't see is any method of name resolution (DNS, WINS, etc). To test this theory, find the IP address of the machine named 'amur' and replace the name with the ip address in your 'net use' command - net use f: \\194.205.40.xxx\images Where xxx is whatever is appropriate, of course.

One other thing (that I don't think will matter), change the machine's IP address assignment to:
IPAddress0="194.205.40.8" (no leading 0's)
 
It sounds like you are booting to DOS without the Network Drivers.
 
Oops, last tidbit that I forgot to mention:

I assume that 194.205.40.8 is a valid IP for your network and is not being used by any other machines.
 
smah, thats for the suggestion, sadly changing from \\amur to the specific IP address has not helped.

this has now gone way past my networking knowledge and I am struggling to understand what is happening. any suggestions are greatfully received.

Phil
 
don't know if this is anything, or even really matters,
but if any drivers,etc needed, are on the boot disk itself, then A:\ would also need to "also" be in the PATH statement and perhaps Temp too. See the other thread concerning GAO1?'s boot disk example.

TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
This may not be appropriate here but...

Do you need to have a username name and password enabled on the server you're trying to connect to?


ROGER.
 
This has always worked for me: If you need to get to \\amur\it\images, you should create a share on the \\amur machine at the \images subdirectory. Give your user account full control to the images share. Once the share is created, then your syntax should be net use f: \\amur\images.
 
Tried that mate, sadly didn't work. I thought it might be a permissions think but I have checked them all and they all look ok to me.

Wish I could get this soorted out as it is driving me nuts.
 
You must post the SYSTEM.INI also, inside, you have the actual filename for the driver so it knows which one to load!

Here is the line you must look for, in this example, I'm loading the Intel Pro 10/100 driver:

[network drivers]
netcard=e100b.dos




"In space, nobody can hear you click..."
 
I've never had to do what you're trying to do, nut do any of these help or apply?

also - on the 98 CDROM in <drive>:\tools\reskit\help
find --> rk98book.chm
all 98 networking stuff inside

might try;
for some utilities that may help.

or it may be something as simple as needing a device driver loaded in config.sys

can you network it up to the point of ghost?

TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top