Hi,

I have my form running but I want the user to be able to do the following in KIX.

Is it possible to do a search in active directory using display name of the target to confirm the username of the target via kix.

So far the form will allow me to put in students username and I connect to their share.

thanks

Break on
setconsole("hide")

Code:
 $Form = CreateObject("kixtart.Form") 
$Form.Size = 350,350
$Form.Text = "Accessing Home Directories -By S. Wintle"
$Form.BackColor = 186,218,240
$TextBox = $Form.TextBox("",120,100,80,20)

$label = $form.label("Please Type In Students Username.",20,10,150,30)

$Button1 = $Form.Button("Connect",100,150,120,40)
$Button2 = $Form.Button("Back To Main Menu",100,200,120,40)
$ExitButton = $Form.Button("Exit", 100,250,120,40)

$Button1.onclick = "Button1_CLick()"
$Button2.onclick = "Button2_CLick()"
$ExitButton.OnClick = "quit()"

$Form.Center
$Form.Show

while $Form.Visible
$=Execute($Form.DoEvents)
Loop
Quit()

Function Button1_Click

$user = $TextBox.value + "$"

use I: /del
use I: "\\curricsvr1\" + $user

if not @error
run "explorer i:\"
endif
EndFunction




_________________________
IT Kings Norton Girls School