Page 1 of 1 1
Topic Options
#43159 - 2003-07-22 09:28 AM compiled "logon.bat" VB
j95661 Offline
Getting the hang of it

Registered: 2001-02-27
Posts: 84
Loc: sacramento,ca usa
I have been mulling over the Idea of creating a Visual Basic Wrapper that would do the same basic functions of a logon.bat file. Here is my reasoning.

Calling wkix32 from the netlogon share each time takes quite a while. Most of our users are logging in over a wan link <384kpbs. I’m a firm believer in not wasting bandwidth, even though its only 230K. I compiled exe would probably only be less than 5K.

I personally don't like the look of using a logon.bat file, that dos box irritates me.

All the VB file would have to do is copy the wkix32 file to the local system if it doesn’t exist. Run wkix32 %0\..\kixtart.kix and monitor for the kixtart process. Once the process is finished then exit.

Has anyone ever thought\started\researched doing this. I have basic VB skills and wouldn’t mind working with others on this if your interested.

This would be a sweet addition for the next version of Kixtart.

Jason
_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)

Top
#43160 - 2003-07-22 11:14 AM Re: compiled "logon.bat" VB
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Don't forget to include version control to ensure that the client version is up-to-date.

In KiXtart you would use GetFileVerion(), but you can achieve it more simply by including the version of KiXtart in the executable - "kix0422.exe" for example.

Top
#43161 - 2003-07-22 01:28 PM Re: compiled "logon.bat" VB
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I know you said you don't like the DOS box but...

I also have a large WAN with some slower links. This is how I do it.

This batch copies all required scripts and binaries to the local computer and verifies (CRC32) that they are current and have not been tampered with or altered. The batch file (3,285 bytes) calls a boot-strap Kixtart script (815 bytes) to insure control.

LOGON.BAT (the overkill version)

[ 22. July 2003, 13:28: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#43162 - 2003-07-22 03:39 PM Re: compiled "logon.bat" VB
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You could also use KiXcrypt. However, I'd rather copy the non-chasnging files to the local computers than introducing more complexity via an added layer of executable. Additionally, you can alwasy hide the "DOS box" if so desired or even use WKIX32 instead of KIX32.
_________________________
There are two types of vessels, submarines and targets.

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 884 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

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