isotonic_uk
(Fresh Scripter)
2005-03-16 11:31 AM
showing a drive in my computer

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



LonkeroAdministrator
(KiX Master Guru)
2005-03-16 01:09 PM
Re: showing a drive in my computer

add this to the end of your script:
Code:

run "explorer i:\"



JochenAdministrator
(KiX Supporter)
2005-03-16 01:55 PM
Re: showing a drive in my computer

came to the same conclusion over here

LonkeroAdministrator
(KiX Master Guru)
2005-03-16 01:57 PM
Re: showing a drive in my computer

gladly my post time was sooner so you can't blame me of copying your EU patented solution.

JochenAdministrator
(KiX Supporter)
2005-03-16 05:17 PM
Re: showing a drive in my computer

well ... as I didn't know of the double post here before I posted over there I am in the comfortable situation of just not caring for whatever dude.



KiX on brutha