Page 1 of 1 1
Topic Options
#170812 - 2006-11-29 10:10 AM Script not run on logon
Cavester Offline
Fresh Scripter

Registered: 2006-10-17
Posts: 18
Hi Guy's

I have wrote a new logon script which works fine when I execute it manually. However if I place a call to it from inside of our logon.bat file it will not map drives or printers?

Is there any obvious things to check for? As I say it works fine if I execute it once logged into windows.

Thanks,

Lee.

Top
#170813 - 2006-11-29 10:43 AM Re: Script not run on logon [Re: Cavester]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4945
Loc: Leatherhead, Surrey, UK
Is the script actually running?

Are you logging any errors?

Have you checked the event log on the client machine to see if anything is recorded?

Consider using the LogEvent() command to write your own status information as the script executes. I give each event a level from 0-9 (0=error, 3=warning, 5=information, 7=debugging, 9=verbose debugging) and then assign the logging level on the command line. If the logging level is equal or greater than the event level then the event gets logged.

Top
#170816 - 2006-11-29 11:28 AM Re: Script not run on logon [Re: Richard H.]
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 950
Loc: Stockholm, Sweden.
Just pondering are you actually writing call newlogon.kix within the logon.bat ?
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

Top
#170817 - 2006-11-29 11:37 AM Re: Script not run on logon [Re: Cavester]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6373
Loc: Stuttgart, Germany
Can you post the line in the batch file that 'calls' the KiX script ?
_________________________



Top
#170819 - 2006-11-29 11:52 AM Re: Script not run on logon [Re: Jochen]
Cavester Offline
Fresh Scripter

Registered: 2006-10-17
Posts: 18
call %0\..\Kix32.exe %0\..\N-E-Logon.kix

The script actually runs but just doesn't run some of the code inside on logon, e.g. adding drives and printers. Yet it does if I run the batch file by double clicking on it once logged in hence one would assume that the code is ok.

L.


Edited by Cavester (2006-11-29 11:54 AM)

Top
#170820 - 2006-11-29 12:01 PM Re: Script not run on logon [Re: Cavester]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4642
Loc: The Netherlands
I’d add some error checking to the script.
If you put this

Code:
?"Some text the tell you what the script is doing now"
?@error
?@serror
sleep 3


after the lines that give errors you’d see what is going wrong and where to look.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#170822 - 2006-11-29 12:31 PM Re: Script not run on logon [Re: Mart]
Cavester Offline
Fresh Scripter

Registered: 2006-10-17
Posts: 18
man this is weird!

the error checks show...

0
The opperation completed successfully.

Top
#170823 - 2006-11-29 12:33 PM Re: Script not run on logon [Re: Cavester]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4642
Loc: The Netherlands
If @error shows 0 then the stuff should be done.
Can you post your script
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 59 anonymous users online.
Newest Members
diefnet, Arogya, gkustra, emnipetro, Hirze
17644 Registered Users

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