Thank you, that was very helpful.
I was able to set up a modified version of the file to do some different things. In the process, a few discoveries that may help others:
1. First, I'm not sure what purpose of putting "C:\Windows\system32\shutdown.exe /h" in was, so I've omitted it. (I guess it puts the system into hibernation)
2. Second, I found "call" worked better than "start /wait" --call runs in the same process, start opens a new one.
3. I discovered a bug in calibre-smtp (sort of): if you add -v to the settings (to see the output), calibre-smtp will fail if the attached file is too big--I guess the output buffer overflows. OK, so the answer is "don't set it to -v, you idiot" but the calibre-smtp function itself probably should have a check in it that just stops outputting a file to the scree after it gets too long.
|