Page 1 of 1 1
Topic Options
#134850 - 2005-03-02 05:29 PM KiXStrip - suggestion
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I am in the process of automating the format of my scripts.

GETVAR is available from - http://internet.cybermesa.com/~bstewart/

Code:

IF EXIST "%TEMP%\%USERNAME%.BAT" DEL "%TEMP%\%USERNAME%.BAT"
GETVAR.EXE -v FN -f %TEMP%\%USERNAME%.BAT "Enter the Kixscript minus the extension:"
::@echo on

CALL "%TEMP%\%USERNAME%.BAT"

set zInput=%FN%

kixstrip420.exe \\DC\NETLOGON\NEWSCRIPT\%zInput%.kix %zInput%.out /BC /Headers /Print /SE /SS /TAB=3 /Translate
MOVE C:\!kix\%zInput%.out \\DC\NETLOGON\NEWSCRIPT\%zInput%.kix
COPY \\DC\NETLOGON\NEWSCRIPT\%zInput%.kix \\<SECOND DOMAIN>\NETLOGON\NEWSCRIPT
::kixstrip420.exe %zInput%.kix %zInput%.out /BC /Headers /Print /SE /SS /TAB=3 /Translate
::kixstrip420.exe %zInput%.kix %zInput%.out /Debug

Echo we are done!!
pause
IF EXIST "%TEMP%\%USERNAME%.BAT" DEL "%TEMP%\%USERNAME%.BAT"



The problem is that this works great with the following exception in the resulting script:

Code:

;($begin)
;
; wed 02-mar-2005 08:19:20 (kix 4.20 vs 4.00e)
;
;Informative KIXSTRIP: no errors found (input=179 output=158 skip=21).
;
;Summary KIXSTRIP: block structures
; - do:until [0:0]
; - for|each:in|to:step|next [0|0:0|0:0|0]
; - function:endfunction [0:0]
; - if:else:endif [12:6:12]
; - select:case:endselect [0:0:0]
; - while:loop [0:0]
;Informative KIXSTRIP: 12 block_structures found.
;Informative KIXSTRIP: no UDF's found.
;Informative KIXSTRIP: no labels found.
;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY
ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO
OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE
;Informative KIXSTRIP: 1 BREAK
;Informative KIXSTRIP: 13 CALL
;
;($end)



Is there any way to turn this off optionally?

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#134851 - 2005-03-03 02:01 AM Re: KiXStrip - suggestion
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Redirect the output to >NUL
_________________________
There are two types of vessels, submarines and targets.

Top
#134852 - 2005-03-03 03:24 AM Re: KiXStrip - suggestion
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
No.. That is not it.

What MCA does with his code is the parser writes the results, althought comented out it not necessary to the file.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, 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.088 seconds in which 0.062 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