Page 1 of 1 1
Topic Options
#147885 - 2005-09-15 11:54 AM mapping networkdrives with environment variables
netzie Offline
Lurker

Registered: 2005-09-15
Posts: 2
hi everybody

I'm new to kixtart and haven't found what i'm looking for...

just a quick question:

I need to map a drive but only if a specific evironment variabel is set.

for example: a system variabel is set on a terminalserver 2003:

Silo=Buisy

but it doesn't work what i've defined in the script:

; Spezielle Laufwerke
;--------------------
IF "Silo=Buisy"
use I: "\\chbasvit002\DV_ITP_Docs"
? "Laufwerk I wurde verbunden."
? "...."
EndIf


how do i check for the variabel, is it written wright?

many thanks in advance - saludos viola

Top
#147886 - 2005-09-15 12:16 PM Re: mapping networkdrives with environment variables
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Try this:

Code:
; Spezielle Laufwerke
;--------------------
If %Silo%="Buisy"
use I: "\\chbasvit002\DV_ITP_Docs"
"Laufwerk I wurde verbunden." ?
"...." ?
EndIf


Top
#147887 - 2005-09-15 12:20 PM Re: mapping networkdrives with environment variables
netzie Offline
Lurker

Registered: 2005-09-15
Posts: 2
many thanks this works!
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
1 registered (Allen) and 675 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.057 seconds in which 0.031 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