#100643 - 2003-04-30 05:47 AM
BAT files
|
attiahia
Hey THIS is FUN
Registered: 2000-03-27
Posts: 268
|
I know that we can execute probably all DOS commands through BAT file, but is there a specific type of commands or language for BAT files ? Thank you.
|
|
Top
|
|
|
|
#100645 - 2003-04-30 07:00 AM
Re: BAT files
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Lonkero is right.. However, there are CMD Files too for NT-Class systems, but are really Batch in nature and structure.
Kent
|
|
Top
|
|
|
|
#100648 - 2003-04-30 10:22 AM
Re: BAT files
|
attiahia
Hey THIS is FUN
Registered: 2000-03-27
Posts: 268
|
No sir. Actually I feel happy that people like you with high level of thinking and experience act with funny questions like what I “some time” asked. Thank you very much.
|
|
Top
|
|
|
|
#100651 - 2003-04-30 03:01 PM
Re: BAT files
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4574
Loc: USA
|
The batch command interpreter in the Win9x series is no where near as powerful as the one built into NT based OSs.
The best book on shell scripting is "Windows NT Shell Scripting" by Tim Hill. Over the past few years/jobs I've owned about 3 or 4 copies. If it were not for KiXtart , I'd still be using it.
I still believe there is one command in the shell scripting language that is far more powerful than just about any other, and to do it in KiXtart requires writing a book of functions (which I've done, but I don't like it)
for /f "tokens=##,delims=?,skip=##" %%f in ('some command') do something
With this command you can manipulate any dos style programs output to a variable, variables, to a text file, call another script, or call a subroutine withing the running script. It can also be used to construct input for another program. The pipe functions found in the UDF section come close but are still lacking in the flexibility of this command.
BUT, now that I am a KiXtart convert, I can live without it.
_________________________
(... better days ahead)
|
|
Top
|
|
|
|
#100654 - 2003-05-05 08:18 AM
Re: BAT files
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
|
|
Top
|
|
|
|
#100655 - 2003-05-05 08:34 AM
Re: BAT files
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
A real compiler for BAT/4DOS/NDOS is the Turbo Batch File Compiler. On the net calling TBT323, TBT324 and TurboBAT. More info see topic F14-591 Utility to map "flow" of cmd files ?
greetings.
|
|
Top
|
|
|
|
#100656 - 2003-05-05 09:03 AM
Re: BAT files
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
|
|
Top
|
|
|
|
#100657 - 2003-05-05 02:26 PM
Re: BAT files
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Here is an interesting bit about BAT file compilers -
http://www.robvanderwoude.com/batutils.html
quote:
(Be aware, that compilers may not understand all the magic you are performing in batch files. Use standard commands only, if possible, and forget about undocumented DOS features.)
Thanks,
Kent
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1126 anonymous users online.
|
|
|