I've got a web service that creates a .BAT file - that batch file does this

Code:
set path=D:\reporting\
amc rpt/printers
This runs an app in that folder called AMC.exe

It's supposed to create an AMC.log file - it does not.

But when I run that .BAT file from windows itself it does create the AMC.log file...

I've tried every security and sharing combination possible.