Page 2 of 2 <12
Topic Options
#93036 - 2003-10-01 08:04 PM Re: Clock counting with Execution of functions
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Here is one way of turning the demo drive mapping function from the logonscript sample into working code...

code:
Function guerB()
$lblStatus.Text = "Mapeando os drives da rede..."

$sNetDrives = "H","I","J","L","M","S"
$sNetShares = "\\dell_server\user","\\dell_server\info","\\dell_server\cdrom","\\dell_server\informatica",
"\\dell_server\manualsiga","\\dell_server\ap6"

$frmFuncStatus.Text = "Mapeando os drives da rede..."
$prgFuncStatus.Max = Ubound($sNetDrives)+1
$prgFuncStatus.Value = ""
$frmFuncStatus.Show

For $I = 0 to Ubound($sNetDrives)
$prgFuncStatus.Value = $prgFuncStatus.Value + 1
$lblFuncStatus.Text = "Mapeando " + $sNetDrives[$I] + ":\"

shell "net use " + $sNetDrives[$I] + ": " + $sNetShares[$I] + " /yes"

Sleep 0.25
Next
$frmFuncStatus.Hide
Exit()
EndFunction



[ 01. October 2003, 20:06: Message edited by: Chris S. ]

Top
#93037 - 2003-10-01 10:35 PM Re: Clock counting with Execution of functions
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
quote:
so I would suggest you remove ALL your sleep commands
Geez... take out the SLEEPs... put in some SLEEPs... make up your mind. [Wink]

hehee
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, 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.041 seconds in which 0.022 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