#135700 - 2005-03-16 11:31 AM
showing a drive in my computer
|
isotonic_uk
Fresh Scripter
Registered: 2004-08-04
Posts: 7
|
Hi Folks
was wondering if someone could help me hopefully which is a simple issue.
below is the code:
Break on setconsole("hide")
$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: "\\curricsvr1\" + $user
At the moment what we can do is we can input a students username in the text box then click on the connect button and that will then map to the students own home area. but all it does is it creates a I:\ drive in my computer, I cant seem to get it so when the user clicks connect it also opens the I: drive as well.
any help on this would be greatly appreciated as I am a KIxtart Novice.
EndFunction
_________________________
IT
Kings Norton Girls School
|
Top
|
|
|
|
#135704 - 2005-03-16 05:17 PM
Re: showing a drive in my computer
|
Jochen
KiX Supporter
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 557 anonymous users online.
|
|
|