I have a number of batch files, which all work when ran separably to back up various Postgres dbs across the network. However when ran through task scheduler the backup files aren't created. There are no job warnings or errors, nothing to indicate anything is wrong except that the files don't exist. There is nothing in the event logs either.
So how can I work out what is wrong and fix it, what should I look at first?
The only way I could find out what was going on is to add the following to the end of each line of the batch file: