Writing the same output to multiple logs
问题 Is it possible to write the same output to more than one file in Batch? My reason for wanting to do this is because I have a large batch script that produces a very detailed log. This is fine as it is, but i want to also output a trimmed back version of the log with a lot less detail in it. The Batch cannot be run multiple times either. Say for instance I have a simple batch: Echo This is a Batch Script >> Path\File1 & Path\File2 osql -S%SERVERNAME% -E -d%DATABASENAME% -Q%SQL% >> Path\File1