Prev | Current Page 388 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

The batch file possesses basic programming structures and you can perform amazing tasks
at times with those structures, but in the end, batch files are somewhat limited. Something as simple
as a disk being full or a lack of rights to create a file in a specific location can cause the batch file to
fail. Error trapping in such cases is difficult because you have to check for error levels from the
errant application, command, or utility and not every one of them supports output error levels. The
???Providing Fault Tolerance for an After Hours Batch or Script??? section of Chapter 8 discusses fault
tolerance, including error handling, in detail. The following sections describe some batch file techniques
you should consider using, especially when working with large systems.
TESTING BATCH FILES 149
Adding Debug Information to Batch Files
Developers of most applications know how to add debugging statements to their code. The debugging
statements aren??™t for general use; they simply make it easier to check the application for flaws.
In addition, the debugging statements make it possible to track program flow and generally help
the developer understand the application better.


Pages:
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
Pozycjonowanie obrączki kraków galanteria hotelowa Odżywki internetowe kursy angielskiego