Typically if you're trying to run a batch file, it requires the command interpreter - typically COMMAND.COM on Win9x/Me and CMD.EXE on NT/W2K/XP, so the command you're trying to execute should be
COMMAND /C BatchFile.Bat on W9x/Me
CMD /C BatchFile.Bat on NT/W2K/XP
You can use the OS() function to determine the machine's OS at runtime.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up