Page 1 of 1 1
Topic Options
#121185 - 2004-06-14 12:16 PM Batch file
milhouz Offline
Fresh Scripter

Registered: 2004-03-19
Posts: 7
Hello everybody...

Do you know if it's possible to call a batch file (.bat) from a Kix Script ???

Thanks in advance for your help..

Top
#121186 - 2004-06-14 02:13 PM Re: Batch file
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Sure.. Page 47 from the 4.22 Doc has a good example of this..

You should be able to use SHELL and/or RUN to do this.

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

Top
#121187 - 2004-06-14 03:45 PM Re: Batch file
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
It is better to convert the batch file to KiXtart and take advantage of the superior error checking and functionality that it offers.

However if you really want to run the batch file look in the manual and the FAQ forum for details about RUN and SHELL, but in short the command will be something like:

Code:
SHELL '%COMSPEC% /C "X:\PATH\MyBatch.BAT"'



[edit]Tch! Really shouldn't leave the post in preview for two hours, someone else is bound to jump in [/edit]


Edited by Richard H. (2004-06-14 03:47 PM)

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
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.056 seconds in which 0.029 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