Page 1 of 1 1
Topic Options
#165322 - 2006-08-01 09:47 PM batch file to call kix script
mahjohn Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 26
so not sure what happened here.... my batch file was working, then something changed (damned techs), and now it doesn't. Seeing as its been a couple years since I set it up, not sure why its not working. The XCOPY command looks to the login server, checks to see if the files on the server are newer than on the client. If they are newer, it copies them down to the client, then runs the script from the client. This allows me to make a change to the dcmetro.kix file and then have it deployed to everyone at next logon.

help making this work again is appreciated

    @ECHO OFF
    REM ----------------------------------------------------------------
    REM Copy Kix Files to PC, Update DCMETRO Script if Newer
    REM ---------------------------------------------------------------
    ECHO Y|XCOPY %0\..\KIX32.EXE C: /D /H /I /R > NUL
    ECHO Y|XCOPY %0\..\DCMETRO.KIX C: /D /H /I /R > NUL
    ECHO Y|XCOPY %0\..\WKIX32.EXE C: /D /H /I /R > NUL


    C:

    C:\kix32.exe DCMETRO.kix

    Exit

Top
#165323 - 2006-08-01 09:49 PM Re: batch file to call kix script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well...
try changing "C:" to "C:\"

Top
#165324 - 2006-08-01 09:55 PM Re: batch file to call kix script
mahjohn Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 26
nope. I tried that and get an unrecognized command. Also tried "cd\", but that doesn't work either.
Top
#165325 - 2006-08-01 10:19 PM Re: batch file to call kix script
Tim_A Offline
Lurker

Registered: 2006-08-01
Posts: 2
Loc: Belgium
Have you upgraded recently to a higher os version?
Top
#165326 - 2006-08-01 10:33 PM Re: batch file to call kix script
mahjohn Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 26
no, the O/S remain a mix of XP /2000
Top
#165327 - 2006-08-01 10:58 PM Re: batch file to call kix script
mahjohn Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 26
ok so I bailed on it. Seeing how I no longer have 9x machines, I took out some things, then realized the script wasn't that long anyway so I just had it run from the logon server instead of copying files local, so now i'm down to this for my 2K/XP machines.

@ECHO OFF
KIX32.EXE DCMETRO.KIX

Exit

Top
#165328 - 2006-08-01 11:31 PM Re: batch file to call kix script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
why don't you loose the batch altogether?

anyways, unrecognised command is something you will not get with proper syntax.
bet you did something else too.

Top
#165329 - 2006-08-02 09:09 AM Re: batch file to call kix script
Tim_A Offline
Lurker

Registered: 2006-08-01
Posts: 2
Loc: Belgium
If you decide to use a batch file and use kix32.exe locally, you can do it like this

Copy %logonserver%\NETLOGON\kix32.exe c:\kix32.exe

c:\kix32.exe %logonserver%\NETLOGON\kix32.exe

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

Generated in 0.053 seconds in which 0.028 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