This is a great function. Sadly there is a bug in the Windows server 2008 Task Scheduler that doesn't let you schedule tasks with quotation marks in the batch. It creates an error. Make sure you are not using this method with Windows Server 2008.

For some reason Microsoft's hotfix does not solve this problem. Trying to find a work around right now, but as it stands I can not execute the batch files through Windows Server 2008 Task Scheduler. If anyone else has had this problem and found a different method for running the batches in windows sever 2008 let me know. Thanks.

Oh, I follow. Yeah It's empty. No luck. I am getting a 0x1 in the Last Run Result Column in the Task Scheduler Library, which I have read on forums has to do with this quotation problem. It runs, just doesn't execute the batch.

Da Beast, No I don't believe it is because I am running with full admin and have checked to run with highest Privs.

Alex, after further study I discovered the quotes don't really matter in this case the ruby request bat file has no quotes and turns up the exact same error as the email bat.

Yasaf, picture is enclosed.

I realize this is a month old. I pretty much gave up on this and have been manually sending reports. I am working right now on a possible way to code a service in c or c# to execute the bats. I am not even sure if that is possible, and it's slow going because I am short on time. I really wish spice works would implement a simple tool that would do this. Thanks to those of you who tried to help.