Can you maybe give some example of what YGF is returning and is being used as %1 in your batch file. Just trying to get a better understanding of your problem.