Page 1 of 1 1
Topic Options
#64733 - 2002-04-19 09:02 PM KiX USE syntax vs. NET USE syntax
Nigel Jackson Offline
Fresh Scripter

Registered: 2002-04-19
Posts: 15
Loc: USA
I'm trying to have everyone in CDNTUsers group connect to these drives as a specific user. Does this look correct and complete? How does the USE syntax differ from the syntax for the NET USE command which is what I followed - USE [Device] [Location] [password] /USER:[domain name\username]

This is because - quite simply - I don't administrate the other system and only have 1 account with the proper privilages on the other machine (which is not part of a domain) to map these drives so I want them to always map AS IF the current user was TSBCDADM. The TSBCDADM account is in SYNC with the local PC account and thus allows seemless use of drives (no username password prompt)

----------------------
IF InGroup("CDNTUsers")
USE "*" /DELETE
USE K: "\\192.0.0.100\Test" mdadcbst /USER:(Machine Name)\TSBCDADM
USE M: "\\192.0.0.100\Prod" mdadcbst /USER:(Machine Name)\TSBCDADM
ENDIF
----------------------

Top
#64734 - 2002-04-19 09:17 PM Re: KiX USE syntax vs. NET USE syntax
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Here is your code:
code:
IF InGroup("CDNTUsers")
USE "*" /DELETE
USE K: "\\192.0.0.100\Test" mdadcbst /USER:(Machine Name)\TSBCDADM
USE M: "\\192.0.0.100\Prod" mdadcbst /USER:(Machine Name)\TSBCDADM
ENDIF

Try this:
code:
IF InGroup("CDNTUsers")
USE "*" /DELETE
USE K: "\\192.0.0.100\Test" /USER:(Machine Name)\TSBCDADM /PASSWORD:mdadcbst
USE M: "\\192.0.0.100\Prod" /USER:(Machine Name)\TSBCDADM /PASSWORD:mdadcbst
ENDIF

Brian

Top
#64735 - 2002-04-19 09:29 PM Re: KiX USE syntax vs. NET USE syntax
Nigel Jackson Offline
Fresh Scripter

Registered: 2002-04-19
Posts: 15
Loc: USA
Is there a way to have a message displayed if it can't find the network drives? I.E. if the connection fails do a SetConsole("show") and display an error message?

I'm still searching this board for that info - but if someone has it on hand please share! -Thanks!!

Top
#64736 - 2002-04-21 07:50 PM Re: KiX USE syntax vs. NET USE syntax
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

See our reaction in topic
http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=2;t=003248
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#64737 - 2002-05-22 07:24 AM Re: KiX USE syntax vs. NET USE syntax
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
solved?
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
0 registered and 823 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.055 seconds in which 0.028 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