Page 1 of 1 1
Topic Options
#1243 - 1999-12-29 09:44 AM Batch File Cancel
Anonymous
Unregistered


In my configuration, Kixtart is called from the users logon batch file. However, the user has the ability to cancel (stop) that batch file before the Kixtart script is called. Is there a way to prevent the user from cancelling the batch file, such as hiding the pop-up window or removing the cancel button from the window?
Top
#1244 - 1999-12-29 11:46 AM Re: Batch File Cancel
Anonymous
Unregistered


There are a few methods of doing that, which I cannot recall, but I have a neater solution to that.

Make part of the script vital to the user... like drive mappings, come at the very end of the script.

The user may cancel the script, but then cannot work due to lack of network resources. Eventually the user will get tired of the game and leave the button alone

Top
#1245 - 1999-12-30 12:05 AM Re: Batch File Cancel
Anonymous
Unregistered


That works for some users, but does not handle some of our users who are not usually accessing mapped drives, etc. I need to remove the user's choice of whether or not to execute the login script.
Top
#1246 - 1999-12-30 02:53 AM Re: Batch File Cancel
Anonymous
Unregistered


There is one solution for NT Workstation
You put the DOS command BREAK OFF at the beginning of your batch.

Top
#1247 - 1999-12-30 05:44 PM Re: Batch File Cancel
Anonymous
Unregistered


BREAK OFF works in Kixtart files but does not work in the batch file that calls Kixtart. Note that my computer is running Windows NT and the NT Help says the BREAK command has no effect, but is for debugging purposes only. Am I missing something?
Top
#1248 - 2000-01-04 03:14 PM Re: Batch File Cancel
Anonymous
Unregistered


Hi,

I'm a little confused. How long is your batch file? If you have a mixed client environment, you shouldn't need more than one or two lines. I doubt the users are fast enough to cancel the batch file before the script runs. If you have just NT clients, you don't even need a batch file. Just list the kixtart script name in the "Logon script name" in the profile for that user. Also, if you have just NT clients, there is no way to mandatorily keep them from stopping the script.

Maybe I'm missing something. Could you give some details about what you are trying to accomplish, your setup, etc.

------------------
Regards,

Brad
Consultant
Net InfraStructure, Inc

Top
#1249 - 2000-01-05 01:01 PM Re: Batch File Cancel
Anonymous
Unregistered


I have a mixed environment with both Win95 and NT users. However, this login script is only for the NT users. The Batch file that calls the kix script file does two things:
1 - It checks to see if the O/S is Win NT. If it is not, the script aborts.
2 - It checks to see if the kix32.exe file is present on the client machine. If it is not, it is copied to the PC.

The Win95 login scripts are being handled by Novell - both Win95 and Novell are being phased out.

Yes the batch file only pops up for a couple of seconds - but some users are definately fast on the draw and can cancel it every time. If I could just hide or minimize the batch file when it starts I think I could win the race against these users and get to the kix script before they get to the cancel button.

I prefer to keep the batch file for doing kix updates and to determine O/S type. That way I don't try to run the kix script on the Win95 machines, which I don't want to do. Also note that users may logon from an NT workstation one day, and a Win95 machine the next, so I cannot just set it up on a user by user basis - which would be a lot of work anyway.

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 823 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.049 seconds in which 0.021 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