Page 1 of 1 1
Topic Options
#15623 - 2001-12-28 09:52 PM Variable Definition
edwardeXe Offline
Lurker

Registered: 2001-12-28
Posts: 1
Kixtart 2001 on WinXP
This is the beginning of a script. I use this section to define the variables for the rest of the script. After the 16th varible is defined (server4= ) it errors out. I can't figure out why, any ideas?

eXe

--Script--

; ------------------------------------------------------------------------------------------------;
; | VARIABLES | ; Use this section to define variable for the rest of the
; ------------- ; script. This allows editing of this section to avoid
; ; editing the body of the script.
;
;
$drive1=f: ; Drive letter to be mapped to a share (format f: )
$share1=PublicApps ; Share to be mapped to a drive (format SHARENAME )
$drive2=g:
$share2=C2KSYS
$drive3=h:
$share3=
$drive4=i:
$share4=C2KVOL1
$drive5=j:
$share5=RIVERSYS
$drive6=k:
$share6=PLAZASYS
$homedrv=l: ; Home directory drive letter
$server1=\\ntfs1\ ; Server name (format \\SERVERNAME\ )
$server2=
$server3=
$server4=
$DFSroot=\\NTFS1\ ; DFS (Directory File Service) share name (format \\DFSRoot\ )
$HomeShare=$DFSroot+homedir\
$group1=RCGROUP ; Win2K or NT group
$group2=CITRIXDIALIN
$group3=TrackITAI
$group4=TrackITJR
$group5=TrackITSZ
$group6=
$RASIP="xxx.xxx.xxx.xxx" ; IP address of the RAS Server (format must be 15 characters w/quotes "200. 35. 35.100")

_________________________
Go West!

Top
#15624 - 2001-12-29 02:24 AM Re: Variable Definition
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
these are string values they need to be wrapped in quotes " or '

$drive = "f:"

like that

for values that are empty like $share3

$share3 = ""

Bryce

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

Generated in 0.045 seconds in which 0.025 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