Page 1 of 1 1
Topic Options
#542 - 1999-09-29 10:47 AM Mapping to hidden share
Anonymous
Unregistered


I need to map to a hidden share in NT using a variable

i.e. net use \\server\%username%$

How would i do this in kixtart? DO I use variables to append the dollar sign to the userid and the "use variable" in the kixtart script?

Top
#543 - 1999-09-30 02:37 AM Re: Mapping to hidden share
Anonymous
Unregistered


You can use the following code:
(works only from version 3.37 and higher)

code:

$Drive = "G:" $Path = "\\server\%username%$" GOSUB "MapDrive"

goto "final"

:MapDrive

If @INWIN = 1
USE $Drive /d
EndIf

USE $Drive $Path

If @ERROR <> 0
? "Error Code :" +@ERROR
EndIf

RETURN

:final


This script is also very good if you want to map other share's !!

------------------
Lon Geefshuysen (MCP)
kixtart.to/lon
lon@kixtart.to



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 1343 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.179 seconds in which 0.112 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