Page 1 of 2 12>
Topic Options
#147633 - 2005-09-12 10:41 PM Disable Beep??
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Hello,
I get an expected error beep during one of login scripts. Is there a way to disable the beep my users get?

Thank you

Top
#147634 - 2005-09-12 10:45 PM Re: Disable Beep??
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Fix the error, don't shoot the messenger!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#147635 - 2005-09-12 10:51 PM Re: Disable Beep??
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Well, maybe you could help with that.
We are trying to push out printers to select groups and not others. So the kix32.exe runs from a bat file and calls up a "*".kix script to add a select printer.

The kix32.exe has to run for all the users, but I have tailor made .kix files for all the printers. So all the scripts have to run, but I only give the selected users rights to the .kix file.


Edited by bippyfeb2098 (2005-09-12 10:52 PM)

Top
#147636 - 2005-09-12 11:08 PM Re: Disable Beep??
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Well, if I can't find a work around, how about a way to disable the beep?
Top
#147637 - 2005-09-12 11:25 PM Re: Disable Beep??
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
You'll have to show us the part of the script that errors before we can fix it. I'm guessing an array reference out of bounds or something like that.

I think what Les was getting to was that you should write error checking into your script so that KiX doesn't try to do something it shouldn't. It is basic programming 101 for any language.

Top
#147638 - 2005-09-12 11:59 PM Re: Disable Beep??
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
indeed, don't do work around. fix the code.

and you can disable the beep by turning volume off.
it's the little speaker icon in the lower right corner.
_________________________
!

download KiXnet

Top
#147639 - 2005-09-13 02:29 AM Re: Disable Beep??
rcurrao Offline
Fresh Scripter

Registered: 2005-09-13
Posts: 21
The code is fine. The error occurs because only the select print group has the right to execute the .kix file.
This is how it works, and I am sure hope there is another way.
We have many network printers that we want to have auto created for our users.

1) User logs in and hits the company wide login.bat which contains multiple entries that look like this:
\\servername\kixtart\kix32.exe printer1.kix
\\servername\kixtart\kix32.exe printer2.kix
\\servername\kixtart\kix32.exe printer3.kix

Within each of these .kix files are autocreated printers for users of choice.

So the above runs for all users, but only those groups I want to have those printers have rights to the .kix file....so hence the error and the beeps.

There has to be an easier way. Today is my fist day using Kixtart....and I am sure that is VERY obvious.

Thanks for not beating me up too much.


Edited by rcurrao (2005-09-13 02:35 AM)

Top
#147640 - 2005-09-13 02:34 AM Re: Disable Beep??
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes, there is.
instead of users hitting any bats, set up logonscripts for the domain.

and in that logonscript, instead of zillion scripts, use one kix that decides with simple ingroup() queries what printers to add to what users.

and there shall be no beeps whatsoever.
_________________________
!

download KiXnet

Top
#147641 - 2005-09-13 02:40 AM Re: Disable Beep??
rcurrao Offline
Fresh Scripter

Registered: 2005-09-13
Posts: 21
But won't I still be creating many logonscripts??
Any chance you could step by step it for me?


Edited by rcurrao (2005-09-13 02:45 AM)

Top
#147642 - 2005-09-13 02:48 AM Re: Disable Beep??
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, if you show me some of your current code, I can show how to translate it to single script code.
_________________________
!

download KiXnet

Top
#147643 - 2005-09-13 04:03 AM Re: Disable Beep??
rcurrao Offline
Fresh Scripter

Registered: 2005-09-13
Posts: 21
Thanks, I will post it tomorrow when I get into the office.
Appreciate your assistance.

Top
#147644 - 2005-09-13 03:05 PM Re: Disable Beep??
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Here is the test Login.bat I am using:



rem *** items for ADP
net use J: \\DC2\HR
set path=%path%;C:\Adp\Sqlbase
set COMSPEC=C:\COMMAND.COM

rem *** map drives to Volumes
net use F: \\DC2\Data
net use W: \\snap\Clients\CLIENTS

rem *** map drives for Applications
net use I: \\DC2\ImmigrantPro
net use K: \\DC2\Docket
net use S: \\DC2\Summation
net use O: \\DC2\Departments
net use Q: \\snap\Departments\MIS\test_archive
net use X: \\snap\Attorneys\Attorneys

rem *** map home folder for Win9x clients
rem If %OS%="Windows_NT" goto Skip
rem net use P: /home
rem net time \\app1 /set /yes

rem :Skip
rem net use


\\print01\kixtart\kix32.exe 18E.kix
\\print01\kixtart\kix32.exe 18SE.kix
\\print01\kixtart\kix32.exe SAS.kix
\\print01\kixtart\kix32.exe 18NE.kix
\\print01\kixtart\kix32.exe 18SW.kix
\\print01\kixtart\kix32.exe 18W.kix
\\print01\kixtart\kix32.exe GS.kix
\\print01\kixtart\kix32.exe HR.kix
\\print01\kixtart\kix32.exe immigration4100.kix
\\print01\kixtart\kix32.exe immigration4200.kix
\\print01\kixtart\kix32.exe records.kix
\\print01\kixtart\kix32.exe trust.kix

Top
#147645 - 2005-09-13 04:02 PM Re: Disable Beep??
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
bump
Top
#147646 - 2005-09-13 04:52 PM Re: Disable Beep??
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no bumping needed.
we surely see your posts without them.
they just make the regulars mad, so please stop doing that.
and please start posting your codes inside code-tags.

now, the code that must be seen is your kix code.
we know you do have odd login.bat which should be just:
Code:

%0\..\kix32.exe %0\..\login.kix



there is nothing else needed in the bat.
and actually, if you don't have windows 9x machines, you should get rid of the bat totally.
_________________________
!

download KiXnet

Top
#147647 - 2005-09-13 05:09 PM Re: Disable Beep??
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Ok, I do apologize for that. My bad.

We do not have any 9x machines. Tha only kix code I have created are the printer scripts for each printer.

The way I am testing it now is:
1) the user profile hits logon.bat.
2) the bat file executes kix32.exe and the logon.kix

I have mapped drives in the logon.kix, but how would I go about user specified printers?

Top
#147648 - 2005-09-13 05:12 PM Re: Disable Beep??
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You could do a check on the comps name or location, the usersname or group memebership, etc..... And then do a addprinterconnection. See the manual for how addprinterconnection works.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#147649 - 2005-09-13 05:12 PM Re: Disable Beep??
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
can you not show how you have it now?
do you have lots of user defined printers?
what about group defined ones?
_________________________
!

download KiXnet

Top
#147650 - 2005-09-13 05:20 PM Re: Disable Beep??
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
The intention is to create group defined printers using Kixtart. We are a Citrix network that will be going away from Terminal Services in teh next 2 months. I still would like to have the auto created printer option available to me.

Here is one of the printer scripts I have for a given group. The script is called upon by the kix32.exe upon log in.

"If ADDPRINTERCONNECTION ("\\print01\18_East") = 0
? "Added printer connection...."

If ADDPRINTERCONNECTION ("\\print01\18E_Copier") = 0
? "Added printer connection...."

If SetDefaultPrinter ("\\print01\18_East") = 0
? "Set default printer to 18_East...."

Endif

Endif"

Top
#147651 - 2005-09-13 05:41 PM Re: Disable Beep??
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
now, if you want to make this per group specific, only add if ingroup around it.
Code:

if ingroup("printGroup18")
If ADDPRINTERCONNECTION ("\\print01\18_East") = 0
? "Added printer connection...."
endif
If ADDPRINTERCONNECTION ("\\print01\18E_Copier") = 0
? "Added printer connection...."
endif
If SetDefaultPrinter ("\\print01\18_East") = 0
? "Set default printer to 18_East...."
endif
endif


with this if ingroup, you can put all the printer kix into one script.
same goes for your batch doing net use.
you can place it inside the kix script and do pretty amazing sh*t.

AND START USING THE CODE TAGS.
_________________________
!

download KiXnet

Top
#147652 - 2005-09-13 05:42 PM Re: Disable Beep??
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
howto post code into this board:
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=146718
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.082 seconds in which 0.034 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