Page 1 of 1 1
Topic Options
#135700 - 2005-03-16 11:31 AM showing a drive in my computer
isotonic_uk Offline
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
#135701 - 2005-03-16 01:09 PM Re: showing a drive in my computer
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
add this to the end of your script:
Code:

run "explorer i:\"

_________________________
!

download KiXnet

Top
#135702 - 2005-03-16 01:55 PM Re: showing a drive in my computer
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
came to the same conclusion over here
_________________________



Top
#135703 - 2005-03-16 01:57 PM Re: showing a drive in my computer
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
gladly my post time was sooner so you can't blame me of copying your EU patented solution.
_________________________
!

download KiXnet

Top
#135704 - 2005-03-16 05:17 PM Re: showing a drive in my computer
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
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
_________________________



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 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.051 seconds in which 0.023 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