Page 1 of 1 1
Topic Options
#20073 - 2002-04-17 11:41 PM problems with NT workstations
Aaron T Granberg Offline
Fresh Scripter

Registered: 2002-04-17
Posts: 15
Loc: MN
I am beginning to put together a logon script, but I am running into a problem right away. I have the following line:

use p: "\\servername\folder"

this doesn't map on NT workstations, but it does on win2K workstations. I couldn't find anything about this in the directions.

I tried to do this:

net use p: "\\servername\folder"

I get an error because net isn't a defined function or something like that.

Any help?

Top
#20074 - 2002-04-17 11:50 PM Re: problems with NT workstations
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Use P: "\\servername\folder" should work.. except...

If it's working on W2K and not WinNT, I'm thinking your folder is a subfolder:

USE P: "\\servername\folder\subfolder" will work on Windows 2000 but not Windows NT.

If you want to try a "net use", then you will have to shell to do so:

SHELL "%comspec% /c net use P: \\servername\folder"

Something like that should work.

Brian

Top
#20075 - 2002-04-17 11:52 PM Re: problems with NT workstations
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I didn't mention this in my last post, but if it's a subfolder of a folder on a share, then it won't work in NT unless you change the share.

Suppose you have a server called "Server1", and you are sharing a folder called "Share1", but you want to map to the "Share1\subfolder", then you should instead share the subfolder as "Share2".

This should avoid the problem if you do it that way (assuming that is the problem).

Brian

Top
#20076 - 2002-04-18 10:12 PM Re: problems with NT workstations
Anonymous
Unregistered


Try this
shell "%COMSPEC% /C subst T: \\server\share"

I have mostly NT workstations and it works fine.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1636 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.114 seconds in which 0.083 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org