i have a bat file which does the following:
@echo off
C:\mysql\bin\mysql -u root tms < d:/manish/spooled_files/tms_compliance_trend.sql
basically executes the script file and populates the mysql table
now if incase the process has some errors
i would like to capture the details of the above process in a file
i tried
@echo off
C:\mysql\bin\mysql -u root tms < d:/manish/spooled_files/tms_compliance_trend.sql > path/to/file/output.txt
but it just created an empty file??
help please!!!