|
|
Long / short file name mistakes - if a filename has spaces you must surround
it "with quotes"
Filenames that include quotes or brackets (') - these are legal filenames but
they can cause problems.
Propagating Null's - if an input is required - test
that it is actually there.
Missing executables - if you call a resource kit utility make sure it's available
on the machine where the batch will be running, also check you have the latest
versions of any resource kit utilities.
Permissions - Make sure the user running the batch has permission to access
any files/resources you call. This particularly applies to scheduled
tasks which may run under different accounts.
Batch files can be saved with the extension .BAT or .CMD
The .BAT extension will run under Windows 95/MSDOS but the .CMD extension will
only run under NT. It is therefore advisable to use .CMD if the script uses
any NT specific commands.
To test if the user is running an intel compatible architecture
IF %PROCESSOR_ARCHITECTURE%==x86 GOTO s_start