Here's a tutorial that'll explain everything you need to know:
viewtopic.php?f=4&t=1899
PS: I'd just use a /path/to/file.bat that doesn't contain spaces or special characters so you don't need to worry about any of this. Just rename the file. It's the easiest solution.
AMC "--def exec" spaces in path
Re: AMC "--def exec" spaces in path
Please read the FAQ and How to Request Help.