#65635 - 2002-05-22 08:03 PM
bat file to start my kix file
|
kennyboy5
Fresh Scripter
Registered: 2002-05-21
Posts: 11
|
G'day. I'm just looking for a simple bat file to start my kix script. My kix script works fine but I dont think this initial line in my bat file is:
IF "%OS%" == "Windows_NT" GOTO WinNT
if its win9x then it does this stuff which it is doing.
:WinNT %WINDIR%\system32\kix32.exe %0\..\start2.kix
The reason I say this is because when I watch the bat file run from the client it shows
IF "" == "Windows_NT" GOTO WinNT
I don't think the first line is working and its going right to the win9x part. It's not grabbing the OS
Thanks Kenny
_________________________
Kennyboy
Systems Administrator
A+,MCP,CNA, soon CLP
|
Top
|
|
|
|
#65637 - 2002-05-22 08:12 PM
Re: bat file to start my kix file
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Are you getting this result on an NT/W2K/XP client or is it a Win9x client?
%OS% is an environment variable automatically set for computer running NT or higher.
Seeing your whole batch file and a slightly better (more detail) description of what is happening would make it easier for us to understand an potentially result your issue.
{edit} Beat out by Les again. [ 22 May 2002, 20:18: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#65639 - 2002-05-22 08:26 PM
Re: bat file to start my kix file
|
kennyboy5
Fresh Scripter
Registered: 2002-05-21
Posts: 11
|
Thanks guys. I was using the script that shawn wrote and thats ok but what happens when the person logs in the next time. Isn't the XCOPY gonna try to copy the files again and you'll get a file exists or something cuz they're already there??
Kennyboy
_________________________
Kennyboy
Systems Administrator
A+,MCP,CNA, soon CLP
|
Top
|
|
|
|
#65640 - 2002-05-22 08:28 PM
Re: bat file to start my kix file
|
kennyboy5
Fresh Scripter
Registered: 2002-05-21
Posts: 11
|
BTW I'm logging in as a win98 client into 2000 server.
Kennyboy
_________________________
Kennyboy
Systems Administrator
A+,MCP,CNA, soon CLP
|
Top
|
|
|
|
#65643 - 2002-05-22 08:47 PM
Re: bat file to start my kix file
|
kennyboy5
Fresh Scripter
Registered: 2002-05-21
Posts: 11
|
Most of our clients here are win98 and a couple of 95's and a couple of 2000pro. My kix script is a basic CASE SELECT that checks the OS and then runs IF statements to map drives using INGROUP. The bat file resides on the server and all I want it to do is to go start the kix file. All clients are logging on through the server so the copying of the dll's and the kix32.exe I don't think is necessary on the client computers but correct me if I'm wrong. All I want the bat file is to start the kix file or am I missing a whole lot here??
Kennyboy
Thanks guys
_________________________
Kennyboy
Systems Administrator
A+,MCP,CNA, soon CLP
|
Top
|
|
|
|
#65644 - 2002-05-22 08:58 PM
Re: bat file to start my kix file
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
Loc: CA
|
Les, wait... save it for a good one
Kennyboy - no your not missing it.
You can run everything from the NETLOGON without a problem. The reason some members copy to the machine locally is that the .EXE and .DLL functions can respond a little faster (not all that much though on a high speed LAN)
If you don't have any XP systems to worry about you can do it this way.
%0\..\kix32.exe %0..\logon.kix
That should work for your clients.
If you want or need to get fancy with checking the OS type you can use this type of bat file I wrote a while back.
code:
@ECHO OFF IF NOT "%OS%" == "Windows_NT" GOTO WIN9X VER|FIND /I "XP" >NUL && IF %ERRORLEVEL% EQU 0 GOTO XP IF not "%ALLUSERSPROFILE%" == "" GOTO WIN2K IF "%OS%" == "Windows_NT" GOTO NT4 GOTO END :XP ECHO Found Windows XP REM Or what ever command you want to run. GOTO END :WIN2K ECHO Found Windows 2000 REM Or what ever command you want to run. GOTO END :NT4 ECHO Found Windows NT 4 REM Or what ever command you want to run. GOTO END :WIN9X ECHO Found Windows 9x REM Or what ever command you want to run. GOTO END :END
[ 22 May 2002, 21:01: Message edited by: NTDOC ]
|
Top
|
|
|
|
#65645 - 2002-05-22 08:59 PM
Re: bat file to start my kix file
|
kennyboy5
Fresh Scripter
Registered: 2002-05-21
Posts: 11
|
Quote from Shawn..."oh boy les - one more to go !"
I'm really hoping from this comment that you're not insinuating myself as a 'dumb ass' when it comes to login scripts. I am new at kixtart so sorry for not being a freakin' braniac like yourself. Yes I did read the kix study guide!!DUHH
Never mind shawn (Mr. I know everything) I figure it out on my own. And I'm actually being calm right now. Don't know how a site like this has a guy like you who seem to getoff shuttin' down newbies like myself.
Kennyboy
_________________________
Kennyboy
Systems Administrator
A+,MCP,CNA, soon CLP
|
Top
|
|
|
|
#65646 - 2002-05-22 09:01 PM
Re: bat file to start my kix file
|
kennyboy5
Fresh Scripter
Registered: 2002-05-21
Posts: 11
|
Thanks NTDOC, appreciate it
Kennyboy
_________________________
Kennyboy
Systems Administrator
A+,MCP,CNA, soon CLP
|
Top
|
|
|
|
#65647 - 2002-05-22 09:04 PM
Re: bat file to start my kix file
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
Kenny, you mis-understood, I was refering to Les reaching the 2000th post milestone
|
Top
|
|
|
|
#65648 - 2002-05-22 09:04 PM
Re: bat file to start my kix file
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
Loc: CA
|
Whoa! hold on there COWBOY...
Shawn is not bagging on you. He is meaning that if you look at the post count. Les will hit number 2,000 post on his next post. It has nothing to do with you.
I would appologize if I were you. Otherwise you may have a difficult time getting any help here again from this board. Shawn, Les, Myself, Bryce, Radimus, MCA, etc... are among the most helpful here. There are other new guys that are quite helpful as well, but not if you go insulting our Old Fart.
|
Top
|
|
|
|
#65650 - 2002-05-22 09:14 PM
Re: bat file to start my kix file
|
kennyboy5
Fresh Scripter
Registered: 2002-05-21
Posts: 11
|
ok sorry for jumpin my sheep. Thanks for the replies and I'm goin' in
Kennyboy out
_________________________
Kennyboy
Systems Administrator
A+,MCP,CNA, soon CLP
|
Top
|
|
|
|
#65651 - 2002-05-22 09:14 PM
Re: bat file to start my kix file
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
Loc: CA
|
COOL Congrats Les...
You're a very dilegent poster. I see you got another vote as well today. Shawn has reached the outer limits for votes. a few months ago I thought he was around 24, now he is at 32..
Well now that I'm around using KiXtart instead of VB for now, maybe I can join your club some day. Not as soon as you did though. You cut in line somewhere
Thanks again guy for all your help and fun posts.
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 366 anonymous users online.
|
|
|