0
I have the following problem:
We receive a daily backup of the database from 4AM to 5AM, and we have a batch job running at 6 AM to get this database running on a VM.
In Task Scheduler, everything is ok, and it runs every day, but we want to log the actions that the batch file does.
Is there any way to do that?
What I’ve already tried:
- Call the batch with another batch that writes output to a file. The scheduler runs the job indefinitely.
- Call a powershell script to run the batch and write to a file. Same problem as above
- Surround batch instructions with
()
and with it make it print the results of the instructions.>"arquivo" (instruções)
Ended up solving the problem! Thank you!
– mutlei