You are right. I've added ECHO into my called batch but it's a bit strange:
IF "%6"=="" (
SET /P MY_PATH="Please specify the path: "
) ELSE (
So ECHO %6 works but doesn't do ECHO %MY_PATH%. So it's failing at %6. ECHO %6 has the path with quotes. Is that what the problem is then? Any suggestions how I can get round it? Should I try to strip the quotes?
Thanks for your help so far.