Page 1 of 1 1
Topic Options
#172783 - 2007-01-15 12:05 PM Help with running my script
Pdherring Offline
Lurker

Registered: 2007-01-15
Posts: 2
Hi,

I am really new to Kix have been writing batch for years but somehow up until now KIX has escaped me.

I have writen a new GUI based logon script for our corporate network and i am having real issues roling it out,

It works fine on my machine but fails on EVERY other machine.

A collegue of mine with ASE or something like that installed can run it fine i can run it fine. but all i get when it runs on everyone else is a system beep and nothing else.

Help

I have attached the script below.

Thanks in advance,

Pete

-----------------------------------------------------------------

;Setup the GUI
$Form = CreateObject("Kixtart.Form")
$form.text = "Logon In Progress....."
$Form.Size = 300,200
$Form.Center
$Form.Icon = "SHELL32.DLL;10"

$Form.PrintXY(20,25,"Complete Name:")
$FName = $form.textbox
$FName.locked = 1
$FName.width = 120
$FName.height = 17
$FName.center
$FName.top = 25
$FName.Left = 150
$FName.value = @FULLNAME

$Form.PrintXY(20,45,"User Name:")
$UName = $form.textbox
$UName.locked = 1
$UName.width = 120
$UName.height = 17
$UName.center
$UName.top = 45
$UName.Left = 150
$UName.value = @USERID

$Form.PrintXY(20,65,"Logon Server:")
$LServer = $form.textbox
$LServer.locked = 1
$LServer.width = 120
$LServer.height = 17
$LServer.center
$LServer.top = 65
$LServer.Left = 150
$LServer.value = %LOGONSERVER%

$pbar = $Form.progressbar
$pbar.width = 240
$pbar.height = 10
$pbar.min = 0
$pbar.max = 10
$pbar.center
$pbar.top = 150
$pbar.borderstyle = 1

$text = $form.textbox
$text.locked = 1
$text.width = 240
$text.height = 20
$text.center
$text.top = 120
$text.value = "Welcome to the @domain Domain. Please Wait..."

$form.show
$Logo.show
Sleep 3

$pbar.value = 0
$text.value = "Starting Login Progess..."
Use "*" /del
Sleep 1

$pbar.value = 1
$text.value = "Configuring Current User Settings..."
Sleep 1

$pbar.value = 2
$text.value = "Configuring Local Machine Settings..."
Sleep 1

$pbar.value = 4
$text.value = "Connecting Mapped Network Drives..."
Call "Mapping.kix"
Sleep 1

$pbar.value = 5
$text.value = "Running System Audit... "
Call "Audit.kix"
Sleep 1

$pbar.value = 6
$text.value = "Configuring Workstation"
Sleep 1

$pbar.value = 8
$text.value = "Updating Anti-Virus"
Sleep 1

$pbar.value = 9
$text.value = "Completing Login"
Sleep 1

$pbar.value = 10
$text.value = "Logon Script Complete"
Sleep 3
------------------------------------------------------------------

It is being lauched via a bat file containing.

REM @ECHO OFF
Start /MIN kix32.exe logon.kix

Top
#172784 - 2007-01-15 12:11 PM Re: Help with running my script [Re: Pdherring]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Quote:

....
It works fine on my machine but fails on EVERY other machine.

A collegue of mine with ASE or something like that installed can run it fine i can run it fine. but all i get when it runs on everyone else is a system beep and nothing else.
....


Just a stupid guess but is the kixforms dll registered on each system you want to run this on? ASE has an option to register the dll during install. By default this option is checked so it gets copied and registered.
To run a kixforms script the kixforms dll must be registered on every system that needs to run the script.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#172785 - 2007-01-15 12:16 PM Re: Help with running my script [Re: Mart]
Pdherring Offline
Lurker

Registered: 2007-01-15
Posts: 2
PERFECT!!! Thanks
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 641 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.052 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org