Page 1 of 1 1
Topic Options
#2936 - 2000-05-16 09:16 AM Win2000 & bat files
Anonymous
Unregistered


Wouldn't you know it, but Win2000 has decided to be stubborn. My logon.bat file runs fine when someone logs in using Win95. When the same thing is tried using Win2000 - nothing happens. The bat file never seems to run, no error messages, nothing - like it didn't exist or it's just not seeing it for some reason that escapes me. My bat file is below. Any ideas?

----bat file start---
@Echo Off
%0\..\kix32.exe %0\..\logon.kix
----bat file end-----

Christine

Top
#2937 - 2000-05-17 08:39 AM Re: Win2000 & bat files
Anonymous
Unregistered


Christine,

Have you tried running the .bat file from a command prompt in W2K? If so, what happens?

Mark

Top
#2938 - 2000-05-17 08:59 AM Re: Win2000 & bat files
Anonymous
Unregistered


It runs fine from the command prompt. Turns out I'm having the same problem with NT in general as well. It'll run fine from the command prompt, but if I try to have it run from a bat file at startup, nothing happens.

Christine

Top
#2939 - 2000-05-17 10:36 AM Re: Win2000 & bat files
Anonymous
Unregistered


Christine, can you post your login script so that we can have a nosey?
I had a similar problem & found out that you need Administrative privileges to make any changes to W2K's registry...

Top
#2940 - 2000-05-18 12:05 AM Re: Win2000 & bat files
Anonymous
Unregistered


Here you go. I was trying it on one machine where the user logging in had full admin privilages.


---logon.kix start---
break on
CLS small
Color b+/n
BOX (7,20,17,61,double)
Color y+/n
;
IF ((@time > "00:00:00") AND (@time < "12:00:00"))
at (9,22) "Good Morning,"
ELSE
IF ((@time > "12:00:00") AND (@time < "18:00:00"))
at (9,22) "Good Afternoon,"
ELSE
at (9,22) "Good Evening,"
ENDIF
ENDIF
;
at (10,22) "Welcome"
;
; ************* Part 2 -- Set Time ***********************
;
color n/n
at (12,22) "Please wait........"
at (13,22) "Synchronizing time with server"
;
SETTIME "\\timeserver"
;
sleep 1
at (13,52) "........"
;
at (15,22) "Time has been synchronized."
;
; ************* Part 4 -- That's the End of it ***********
;
sleep 1
;
EXIT
---logon.kix end---

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 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.058 seconds in which 0.031 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