Page 1 of 1 1
Topic Options
#44192 - 2003-08-19 01:07 AM Check for drive mapping
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
[Moderator (sealeopard): Moved thread from 'Scripts' to 'Starters' forum due to lack of script in body]

How can I accomplish the following command using kixtart?

Net Use | Find \\Client\C$

I am trying to check for the existence of a mapped client drive in a Terminal Server environment.

[ 19. August 2003, 04:08: Message edited by: sealeopard ]

Top
#44193 - 2003-08-19 03:35 AM Re: Check for drive mapping
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
bet there is lot other ways to do this but one example is:
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000425
_________________________
!

download KiXnet

Top
#44194 - 2003-08-19 05:05 AM Re: Check for drive mapping
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I think you are looking for something like -

code:
IF EXIST('\\Client\C'+'$$\nul')
?'Do something'
ELSE
?'Do something else'
ENDIF

Or, better yet -

code:
IF EXIST('H:')
?'Do something'
ELSE
?'Do something else'
ENDIF

HTH,

Kent

[ 19. August 2003, 05:06: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#44195 - 2003-08-19 06:26 PM Re: Check for drive mapping
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
Thanks, Lonkero. I think that will do the trick. I'm just learning and it helps to see examples, to see how its done.

Thanks, also to kdyer.

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.067 seconds in which 0.04 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