Thank you Foxidrive, it worked
Thanks, I'm glad to hear that.
I've learned something new just now from your comment -
the Run dialog sets the working directory to the path of the executable.
I just tested it with some sample files - and this is why your command worked in the Run dialog but failed in the first batch file I posted.
If anyone is interested you can create this batch file called
one.bat in say
c:\test and then in the Run dialog type
c:\test\one.batIf you open a cmd prompt in
c:\ and execute
c:\test\one.bat then you will get one line echoed and errors, but not from the Run dialog.
@echo off
>"%~dp0\batch2.bat" echo @echo batch 2^&pause
echo batch 1
call "batch2.bat"
del "%~dp0\batch2.bat"